Other Issues - how can i restrict "view page source" option when right click on browser(mozilla or ie)

Asked By mahesh kumar on 19-Mar-13 09:48 AM
how can i restrict "view page source" option when right click on browser(mozilla or ie) after running the asp.net
website

   or

i want to display empty source when i clicked on "view page source" option when right click on browser(mozilla or ie)
means is any way to handle from code page or design page

Please let me know if any solution is there !!!

Thanks InAdvance....
Robbe Morris replied to mahesh kumar on 19-Mar-13 10:16 AM
You cannot hide the html/css/javascript from the user.  You can try all sorts of tactics but none of them will be effective.  If you are attempting to hide your JavaScript code, look into JavaScript obfuscators.
mahesh kumar replied to Robbe Morris on 20-Mar-13 02:11 AM
First of all, Thanks for the reply.

 But i heard that is possible with css using java script, any how if u know any after please let me know...

 
Robbe Morris replied to mahesh kumar on 20-Mar-13 08:55 AM
You can make it more difficult but not impossible.  You cannot hide your html, css, or javascript code from users.
mahesh kumar replied to Robbe Morris on 20-Mar-13 08:58 AM
ok , Thanks for u r reply.....