Solved

How to prevent viewing of HTML page source

Posted on 2007-03-31
6
335 Views
Last Modified: 2013-11-26
How to prevent viewing of HTML page source
0
Comment
Question by:JaimeJegonia
6 Comments
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 250 total points
Comment Utility
you cannot prevent that. the html source code is downloaded by the browser to show the page.
you can obfuscate. you can make it trickier to see it. but you cannot prevent it to be seen.
0
 
LVL 10

Expert Comment

by:NetworkArchitek
Comment Utility
Angelll is correct. Ultimately, the reason for this is that the browser must display it. If someone wanted to they could simply monitor the HTTP traffic and see your HTML in plaintext. But it depends on what your goals are on how much you need to do prevent someone seeing your code. You could look at other presentation tools like Flash or something like that to make it quite a bit harder for someone to "copy" your work.
0
 
LVL 15

Expert Comment

by:Thogek
Comment Utility
There are some products that claim to be able to encrypt your HTML files in a manner that browsers can internally decrypt for display, or to just plain obfuscate the HTML code.  For example:
http://flashpeak.com/crypthtml/
http://www.marketingrocket.com/prodhpr.php
http://hide-html-source-code.qarchive.org/applications.html
http://www.2-dynamic.com/

Note that (1) I've never personally experimented with any of these, and honestly don't know whether or how well they'd work, and (2) I suspect that some of these tactics might well also have negative SEO effects.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now