php - Encrypt html code in source view -
i using video embed code (similar youtube's embed code) , encrypt or hash part of code (the video id or filename of video). important me user views source code of page wont able view items. there way can so? recommendation?
i'd add site using php.
for example, here youtube embed code:
<object width="420" height="315"><param name="movie" value="http://www.youtube.com/v/frgwbn8yt_e?hl=en_us&version=3"></param><param name="allowfullscreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/frgwbn8yt_e?hl=en_us&version=3" type="application/x-shockwave-flash" width="420" height="315" allowscriptaccess="always" allowfullscreen="true"></embed></object>
lets want change part:
value="http://www.youtube.com/v/frgwbn8yt_e?hl=en_us&version=3">
into:
value="sdfj8435437fjdfs8458543(some kind of hashing or encryption)">
thanks,
nimi
that completely, fundamentally impossible.
no matter do, user can see final result in inspector or network tab.
instead, can place single-use token in url work once.
Comments
Post a Comment