Solved

How to prevent viewing of HTML page source

Posted on 2007-03-31
6
336 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
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 Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
LINQ - C# to VB convertion 12 46
Data is not showing from images 15 37
SQL Exceptions 3 37
C# MVC and a global static factory that never dies 4 46
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

911 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

22 Experts available now in Live!

Get 1:1 Help Now