Solved

How to hide Browser View Source?

Posted on 2008-06-23
4
1,710 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 142

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 142

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
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.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video discusses moving either the default database or any database to a new volume.

743 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

9 Experts available now in Live!

Get 1:1 Help Now