Monday, August 26, 2013

Have you found your blog work COPIED somewhere?

Thanks to Hafeez Khan, I managed to disable RIGHT CLICK feature to protect my blog content today. I'm so sorry to use this trick. But, you know it is so annoying to find your work copied somewhere without your permission or referring to your name. If you want to prevent others from copying and pasting your work, please follow the steps below:

1. From your blog dashboard, go to "Layout".
 

















2. Click "Add a Gadget" to select one for the code.


















3. Choose "HTML/JavaScipt" gadget.















4. Copy the following code and paste it in the content box of the gadget.   
    NOTE: As copying is disabled now, please click here to get the code.

var omitformtags=["input", "textarea", "select"]
omitformtags=omitformtags.join("|")
function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}
function reEnable(){
return true
}
if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}
 

   This code is shared by Hafeez Khan (To see his post, please click here!)

























5. Don't forget to click save. 
6. If you care about your blog's appearance, please drag this gadget to the footer.

Reference:
Post a Comment