• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1720
  • Last Modified:

How to hide Browser View Source?

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
Saroj13
Asked:
Saroj13
  • 2
1 Solution
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
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
 
Saroj13Author Commented:
I need some other solution.

second solution will not work as I have .aspx and masterpage
0
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
apart from the FACT that you cannot effectively hide the html resulting code, why do you want to do that, anyhow?
0
 
ChumadCommented:
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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now