in ,

Disable Right Click On Your WordPress Site

Right click on website is easy for visitor for save your image, etc. But some people may use it in a bad way, and you may want to make click right disabled on your blog. It is annoying when you spend a lot of time in writing a blog and someone simply copies your post and post it on their own website.

To disable right click:

Step 1 : Go to Appearance> Editor> and find footer
Step 2 : Copy the code from this and paste before close </body>
Step 3 : Save and view you blog.

[html]

<script type="text/javascript">
document.onmousedown=disableclick;
status="Right Click Disabled";
function disableclick(event)
{
if(event.button==2)
{
alert(status);
return false;
}
}
</script>

[/html]

What do you think?

Written by Sopheap

The goal of me is sharing new ideas, inspiration art, fresh and useful resource, covering web design and development, graphic design, advertising, mobile development and life style.

Comments

Leave a Reply

Your email address will not be published.

Make Drop Caps ShortCode In WordPress

Make Drop Caps ShortCode In WordPress

Add Social Share button To Your WordPress Site

Add Social Share button To Your WordPress Site