0

I was looking at a nice site today and when I tried to see their 'source code' or 'page source', nothing happened. So, how do you block someone from seeing your meta tags and such?

Is there a downside to doing this sort of thing?

4
Contributors
4
Replies
5
Views
8 Years
Discussion Span
Last Post by jreseo
0

Ive done a research on the web and it says that it is used it to keep people from stealing your content. They will probably have copy and paste disabled too. Theres still ways of seeing it. but i dont know how they do it

0

Ultimately there is nothing you can do to hide any source code that is served to the browser. Any attempts to hide that can be bypassed by simply using an HTTP viewer or other tool that reads directly from the webserver bypassing a browser (e.g., the HTTP viewer at http://www.rexswain.com/httpview.html).
This would include any source code in included javascript or css files.

You can try to obfuscate your code. For example, there are compression utilities for JavaScript that make it almost unreadable (look at Google's Javascript and you will see this). Still, a smart engineer could figure it out.

Note that code that is executed on the server, such as PHP, ASP, .NET, JSP, etc are NOT readable, as long as your server is configured to execute those files rather than return the source. Of course, if your server is not configured correctly, then a hacker might get into these. That is a whole other area -- making sure your server is safe from hackers.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.