Link to home
Start Free TrialLog in
Avatar of valuesolutions
valuesolutions

asked on

How can the View Source be hidden on the Browser

Hi,

I am working on an asp.net application. I dont want the html source to be visible in the browser. How can I porevent this.

Thanks
Madhu
Avatar of vipero
vipero

You can't, AFAIK.

You could use an html obfuscation code or software, that may be able to deceive many too-curious users.
Avatar of Deepak Vasudevan
Madhu,

There are no straight forward ways though. You can have a simple webpage with a DIV and the sources can be retrieved via XmlHttpRequest /AJAX.

This way, the actual (possibly confidential) webpages are retrieved dynamically at runtime.

Or you can have such pages as FLash pages.
ASKER CERTIFIED SOLUTION
Avatar of Mark Gilbert
Mark Gilbert
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
After you have finished the page, take screenshot of the page and put the image of the page on the web server. Actually this is not my idea, but from sfnet.viestinta.www -newsgroup.

:-)
There has been many many discussion about this topic.
This is impossible. The most intereting discussion about this topic I have come across in following link. This is a year old thread but I have saved it permanently in my archive.

https://www.experts-exchange.com/questions/21083892/Disable-view-source-function.html

Regards,
---Pinal
hi Pinaldave,

I believe that some of the experts on this query have provided valueable explanations to the solution and we would all be interested in this questions disposition.