Link to home
Start Free TrialLog in
Avatar of technoman
technoman

asked on

How to Disable view source/save/save as

Hi,

How do i disable the viewsource/save/save as of the browser so that surfers can not see my html code nor modify it. Thanks

technoman
ASKER CERTIFIED SOLUTION
Avatar of mjmohan
mjmohan
Flag of India 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
Avatar of cybotto
cybotto

You can always view a page from the cache of the browser, there is no really a way to hide your code!
haha, acutally it's no need to have open the cache file and have a look at it's source code...
   although we can make use of javascript to disable the right click (right mouse button), but still can make use of our browser's "menu" to save/save as or even go to "view" (for IE) and have a look at it's source code !

   the best way you don't want to let your source code to be "published" to other people, it's suggest that you use Server-Side programming, like CGI, ASP (you may use javascript here), PHP...

Success !