Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here



Source Code

ò How do I hide my source code and protect my images by SPYDERIX
Posted: 30 Jan 03 (Edited 27 Jun 03)


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:


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!

thanks to sheaffer for the part on encryption



Back to HTML, XHTML & CSS FAQ Index
Back to HTML, XHTML & CSS Forum

My Archive

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close