Friday, 30 January 2015

how to disable right click on your blog or website

Leave a Comment
If you own a blog and spend your valuable time in writing articles then you know that how frustrating it feels when someone copies your content. you write a article with great efforts and lot of hard work and you always want to prevent your content from other bloggers who just copy and paste it on their blog. therefore to prevent this and secure your content i'm showing a simple trick that disables right click on your blog.
Just follow the steps given below to do so -

how_to_disable_right_click_on_your_blog_or_website


STEP 1-Open your blogger dashboard and click on layout

how_to_disable_right_click_on_your_blog_or_website

STEP 2- Click on "add a gadget" and select html/javascript.

how_to_disable_right_click_on_your_blog_or_website


STEP 3- copy and paste the below code there

<script language='JavaScript1.2'>
function disableselect(e){
return false
}
function reEnable(){
return true
}
document.onselectstart=new Function ("return false")
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>
<!--Code http://thecybertips.blogspot.in>

STEP 4- Save and it's done

Now none will be able to copy your your posts if you want to renable right click then just remove this code and right click will be enabled :)

0 comments:

Post a Comment