.
Back to Top

1 Disable Text Selection! - Stop Someone Copying From Your Website

There is a difference between referring sites and just copying content from others websites. Creating an original content is art and everyone can learn it. Instead of just filling out your site's content, you can try to help a community with something original and creative. Although copying is basic phenomena and necessity, but in the world of internet, it is a serious crime.

Surely you can step forward and make sure your content or even its part is not being directly copied somewhere. At least you can reduce this percentage to almost half by disabling the copy command on your site. This is pretty simple but potentially very useful.

Google and other services keep searching websites for copied content and those websites may get banned or marked as spam.

Use below JavaScript code.

<script type="text/javascript">
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 }
</script>

OR

<script type="text/javascript">
var dsblselect=["input", "textarea", "select"]
dsblselect=dsblselect.join("|")
function disableselect(e){
if (dsblselect.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 }
</script>

Blogger

Go to Blogger Dashboard > Template > Click Add a Widget/Gadget >
HTML/JavaScript
Copy above code into it > Save

Wordpress

Go to WordPress Dashboard > Appearance > Widget > Add a New text Widget
Copy code into box > Save

That's It! Your site is now protected against copy paste on right click and with Ctrl+C command. 
Related Posts Plugin for WordPress, Blogger...

Zergnet