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\nAll contents are copyrighted and are not available for download and/or use on any other site.\n\nAll Rights Reserved. © 2007-2008;;
function clickIE4(){
if (event.button==2){
return false;
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
return false;
if (document.layers){
else if (document.all&&!document.getElementById){
document.oncontextmenu=new Function(“alert(message);return false”)
// –>


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

  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


Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s