• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1721
  • 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.
  • 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:
Saroj13Author Commented:
I need some other solution.

second solution will not work as I have .aspx and masterpage
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?
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.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

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