How to Block Right Click On Your Website

Right Click (.ilst)

I have come with website that would give you tips on how to block right click on your website. Please refer below tutorial to do that

For those who are like to writing, have you ever worked really hard on graphics for your site only to find later that someone has stolen them as their own?

Now you can protect your site with the following HTML codes. This codes is for No Right Click Block and  will help you  against Righ Click.

Just 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.

We all know that there are no scripts that works 100 percent perfectly.This script may not work in all browsers, and is 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. But it certainly is a great start.

Copy and paste the following code, and make sure it comes right after your <HEAD> tag:

<script language=JavaScript> var message=”Function Disabled!”; 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>

If you don’t like using javascript, you can always use a span tag to position a transparent gif over the top of the image like the example code below. Don’t forget, you will need to create a transparent.gif to implement this method.

<span style=”background-image: url(images/my_image.jpg)”><img src=”images/transparent.gif” width=”200″ height=”150″ border=”0″ alt=”Protected Image.”></span>


0 0 votes
Article Rating

We are teams that have the same hobbies in Information Technologies and have experienced in many fields regarding Information Technologies .

Recent Articles

Notify of
Inline Feedbacks
View all comments
Would love your thoughts, please comment.x