個人資料
  • 博客訪問:
正文

JavaScript 'NO RIGHT CLICK'

(2006-10-15 01:25:06) 下一個
來源http://www.hypergurl.com/norightclick.html

JavaScript "NO RIGHT CLICK" for Images

Have you ever worked really hard on graphics for your site only to find later that someone has stolen them as their own. You can fully encrypt and protect your site with HTML-Protector and the scripts below will help against novices.

Use the script below so when someone right clicks to save an image off your page, a message will come up letting people know that your information is copyrighted.

This script only works on newer browsers, and it's not foolproof. If someone really wants something from your page they can find ways around it, but at least it's a warning to people who want to take your graphics. Copy and paste the following code, and make sure it comes right after your tag
:

 


Script For "NO RIGHT CLICK" for Source

Here is a handy little script which will not only protect your images from right clicking, but your whole page. Remember this only stops some visitors from viewing your source. There are ways around it and if someone really wants to view your source they may find a way. There is another trick below to protect your source code.

This script works best if placed within the head tags of your html. Homestead users can use the "insert html" option within their editors:

 

 

Disable Copy and Paste.

One of the most popular questions I recieve here at Hypergurl is "How do you stop visitors from stealing your webpage information?"

Below is a little trick that will stop your visitors from copying and pasting your webpage information. Anyone with experience may know a way around this trick. However it will make it hard enough to discourage them and get them moving on to easier targets.

Add the following html code to your BODY tag:
Here is how your BODY tag may look once implimented:
 



Make Your Source Code Vanish.

Now before I show you this last trick to protect your source, I would like you to first view my source. Just click "View" then choose "Source"

How did I do that?

Place your cursor in front of the opening tag and hit your enter button for a while. It will push your source code out of view and this will fool the fools. *smiles*

[ 打印 ]
閱讀 ()評論 (1)
評論
目前還沒有任何評論
登錄後才可評論.