Well, there are some work arounds if you want to protect your HTML code. None of them work 100%. Here are some steps you can take:
1) you can embed them in frames (one frame of zero width, and the other of 100% width with the file), so when the user clicks on View Source, he'll see the frameset document. You can repeat the embedding as many times as you want. Hole: user can right-click and choose "view source" from the context menu.
2) you can open the file with sensitive information in a new popup window with all the menus and toolbars disabled. Then you also run a special script in <head onload="your_function()"> that will disabled the right mouse click (do you have one?). After that the only way to break the defense for the nosy user is to go back to previous file, view source and copyhe url for the link. then paste the link in the address bar and view the file. after that choose "save as" from the file menu. ---
you cannot prevent people from downloading your page if they go to it... that how the browser displays it. you can, though, make it nore difficult for users to download. adam@aauser.com
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.