Friday, October 30, 2009

I need an html/javascript that prevents users from saving a web page?

I would like to add a code to my secure page to prevent users from saving it on their computer.



I need an html/javascript that prevents users from saving a web page?





The following commands work in some browsers to stop the page caching. But as has been said, trying to protect a page is pointless. There are a million and 1 ways to get around all methods of hiding code. Just enjoy your coding and know that just as you will take ideas from others, they will take them from you.



%26lt;meta http-equiv=%26quot;pragma%26quot; content=%26quot;no-cache%26quot;%26gt;



%26lt;meta http-equiv=%26quot;expires%26quot; content=%26quot;-1%26quot;%26gt;



I need an html/javascript that prevents users from saving a web page?



That is not possible. If you serve the page and allow me to access it, I can save the information.



Other Replys:If the page can be viewed in a web browser it can be saved. It%26#039;s that simple.



Other Replys:There is no way of doing it. You can disable the right click option, but usually if you hold down the left button then click on the right button you will override the JavaScript.



No matter what you do someone can steal your code by viewing source. Someone can easily steal your images but taking a screen capture.



Its a futile effort that will not work



Other Replys:There are ways to hide your source code from others - wrap it in a different non-displaying language like ASP. But the actual page that is served can still be saved. So if you want to avoid them from saving your source, that%26#039;s one thing - but saving what gets displayed in the browser itself is another



Other Replys:Well, I%26#039;ve actually seen web pages that also disable the %26quot;View Source%26quot; menu item in the %26quot;View%26quot; menu of Internet Explorer. And I have written a script that does not allow the right-mouse button to be clicked at all. The most common example of that is a custom context menu, instead of the IE context menu for right-click.



Other Replys:Everyone is right. No script exists that can stop someone from downloading your page. But you can scramble the source so that they cannot see how the page was written. Therefore they cannot steal parts of the code.



Note: before scrambling your source code it might be a good idea to put a senetence on your page saying %26quot;Copyright (c) 2006 Your Name Here All Rights Reserved%26quot; so everyone knows who your page belongs to. After the page is scrambled they won%26#039;t be able to get rid of the copyright. :)



Copy and paste your HTML source code into this tool.



http://www.voormedia.com/en/tools/html-o...



Then click the %26quot;create scrambled html%26quot; button. Now copy and paste the scrambeld html into your hatml editor and save it.



DO NOT DESTROY THE ORIGINAL FILE IN CASE YOU WANT TO MAKE CHANGES AT A LATER DATE!



Now no one will want to take your page.

No comments:

Post a Comment

Blog Archive