What's new

Closed How To Disable Right Click On Your Website or Blog

Status
Not open for further replies.

La Freak

Forum Master
Joined
Jan 16, 2013
Posts
7,947
Reaction
13,431
Points
5,933
KlRqS4c.jpg
If you own a blog or a website then you always want to prevent other malicious bloggers from copying the content from your blog. You might have written an article with great efforts and lots of research and other just copy/paste it on their blog. To prevent such users from copying content from your blog i will show you Javascript Trick to disable right click on your blog. So lets get started.


How To Disable Right Click On Your Blog ?

  1. Got to your blogger Dashboard and then Click on Layout.
  2. Now Click on Add Gadget and select Html/Javascript.
  3. Now paste code given below in the pop up window.
Code:
 <!--MBW Code-->
    <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 End http://mybloggersworld.blogspot.in>

4. Save it and done. Now users will not be able to right click on your website.​
 

Attachments

Dear La Freak,

Since 2 years have passed since the last reply in this thread, I am locking it to prevent necroposting. Feel free to start a new thread or contact any forum staff if you want this to be reopened.

Thread closed.
 
Status
Not open for further replies.

Similar threads

Back
Top