Solved

How to prevent viewing of HTML page source

Posted on 2007-03-31
6
339 Views
Last Modified: 2013-11-26
How to prevent viewing of HTML page source
0
Comment
Question by:JaimeJegonia
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 250 total points
ID: 18828301
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
ID: 18830883
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
ID: 18831203
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

Is Your DevOps Pipeline Leaking?

Is your CI/CD pipeline a hodge-podge of randomly connected tools? You’ve likely got a tool to fix one problem & then a different tool to fix another, resulting in a cluster of tools with overlapping functionality. Learn how to optimize your pipeline with Gartner's recommendations

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

734 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