Solved

How to hide Browser View Source?

Posted on 2008-06-23
4
1,713 Views
Last Modified: 2013-11-26
How to hide view source code from IE browser. code implemented in asp.net and c#. please let me know so that no body can able to see the code.
0
Comment
Question by:Saroj13
  • 2
4 Comments
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 21849775
you cannot hide the resulting html code. it HAS to be transferred to the computer to be able to display it (this includes client-side javascript, as it has to be executed on the client computer).

anyhow, here some suggestions in "hiding" (obfuscating) the html resulting code:
http://www.jguru.com/faq/view.jsp?EID=444156
http://www.htmlguardian.org/help_main.html
0
 

Author Comment

by:Saroj13
ID: 21849866
I need some other solution.

second solution will not work as I have .aspx and masterpage
0
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 21849920
apart from the FACT that you cannot effectively hide the html resulting code, why do you want to do that, anyhow?
0
 
LVL 8

Accepted Solution

by:
Chumad earned 500 total points
ID: 21849964
Just echoing what angellll already said - there is no way to hide the source code that renders your HTML. It's simply impossible. You can make it so right clicking and viewing source won't work, but a techy person can easily look in your internet temporary files or simply disable the javascript that makes the "view source" command not work to get around it.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
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…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

839 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