Translate

.

Monday 30 April 2012

Wanna Stop Copying Content from your Blogger blog?

There are many tricks associated with blogger blogs here. Now I am explaining about how to disable content copy option in blogger blog so that no one is able to simply copy contents in your blogger blog.
Here is a simple way to do the same.

1. Log in to your blogger account. In the dashboard, click on Design / Layout> Edit HTML

2. Click on the box named Expand Widget Templates

3. Now copy the set of code metioned below.

<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>

4. Paste this code anywhere between head tag, ie. <head> and </head>

5. Save the changes made by clicking on Save Template tab

Finished. Now go back to your dash board and open your blogsite. Copying option is disabled there!

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...