No Right Click


No Right Click – Disable the right click on your pages to prevent users from “borrowing” images from your site and viewing your page source!

Ever wanted to prevent users from “borrowing” images from your site through right-clicking them and “save image as…” or right-clicking the page and viewing your page source? The No Right Click will disable the right click on your page in just a few clicks. No programming knowledge needed!

Protect the content of your Web page by preventing others from viewing your source code!

Simply add the following code to the <BODY>  section of your web page (Press Ctrl C after selecting code to copy it):

<script language=JavaScript>
<!–
var message=”This website and it’s contents are owned and licensed by https://ranawd.wordpress.com.\nAll contents are copyrighted and are not available for download and/or use on any other site.\n\nAll Rights Reserved. © 2007-2008 https://ranawd.wordpress.com&#8221;;
///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function(“alert(message);return false”)
// –>
</script>

Advertisements

2 thoughts on “No Right Click

  1. I placed your script into my header.php file on my eiditor and saved the page and no luck. Still can right click and save the images. Can you shed any more light on the subject
    thanks
    -chris

  2. Hello Chris
    I have checked my code again, it works fine. I have attached a HTML file in your email address, please run this and check. Finally if you keep this code right place i think it should be worked. This code IE6, IE7, Safari, Opera and Mozilla Firfox supported. Please check again. If you have any query please inform me. Thanks and Regards

    Rana

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s