Monday, 3 March 2014

How To Disable Text Selection To Stop Thieves On Websites And Blogs

09:10

In the last post I explained that how you can disable right click on your website to avoid copying from it.Today I am going to post about disabling text selection on any platform such as Blogger, Wordpress and other hosted websites.Now a days content thieves are increasing rapidly and plagiarism has become a serious problem. If you have a same problem then you must read this post. Here is a simple javascript to disable text selection which really has a strong effect that that of disabling mouse's right click.
Image Source:Google Image Search


Disable Text Selection On Blogger:

If you are using a blogger platform then it is very easy to disable text selection on it, just follow the steps:
  • Go To Blogger
  • Now Go To Layout>>Add Gadget>>HTML/Javascript
  • Just Paste Following Code And Save Gadget:
<script type="text/javascript">
/************************************************ Disable select-text script- © Dynamic Drive (www.dynamicdrive.com)* This notice MUST stay intact for legal use* Visit http://www.dynamicdrive.com/ for full source code***********************************************/
//form tags to omit in NS6+: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=disableselectdocument.onmouseup=reEnable}
</script>
That's it, after saving the code you can check that its not possible to select text on your blog now.

Disable Text Selection On Other Websites:

If you are using platforms other than Blogger such as Wordpress or hosted websites then you need to add following code anywhere in your websites body tags to disable text selection:
<script type="text/javascript" language="JavaScript">
function disableText(e){
  return false;
}
function reEnable(){
  return true;
}
//For browser IE4+
document.onselectstart = new Function ("return false");

//For browser NS6
if (window.sidebar){
  document.onmousedown = disableText;
  document.onclick = reEnable;
}
</script>
Last Words:

As I explained in the last post the stealing of content from website has become a serious problem now a days. If you think your content is being copied you can check it on online via tools such as Copyscape.com,Plagspotter.com etc. This sites gives you information of similar content and it's matching percentage. You can also complain to copyright authorities about websites stealing your content. So keep posing and do not worry about thieves. Leave a comment below if you have any questions and queries.Good Day..

Written by

Satyam Bora Is 18 Years Old Boy Addicted To Blogging And Technology.He Is A Part Time Blogger And Student Of Civil Engineering. This Guy Is Always Here To Help You :)

0 comments:

Post a Comment

 

© 2013 TricksDroid. All rights resevered. Designed by Templateism

Back To Top