This question has been asked so many times that it can't be kept track of anymore.
The answer to this extrememly frequent question is:
[color red]YOU CAN'T[/color]
Anything in the source code is client side language that browser needs to interpret the site you are viewing, without it there is no site. Even using such methods as no-right click, and disabling the view source menu are pointless, because any determined person can get what they want. Your pages are stored in the cache so retrieving that page wouldn't be hard to do either, and if you use a fancy script to hide the source via Javascript or VBscript, chance are those scripts are not cross browser, therefore just by viewing a page in another browser could help obtain the source code.
And as for those scripts that that encrypt your code, they are usually made with javascript/VBScript and can be easily decrypted.
The same applies to pictures. You can't protect your pictures on the net either, b/c you can do various things to get them too: drag the pictures into the address bar, get them from the cache, print screen, snapshot (Mac), etc.
If you don't want anyone getting your source code or your pictures, then don't publish them to the web.
Hope this helps!
[sup]thanks to sheaffer for the part on encryption[/sup]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.