Pages

Tuesday, October 4, 2011

disable copy paste in blog


You must have noticed that most of blogger sites have disabled copy paste and right click function, so that their hard work on writing blog cannot be copied by others.
Here’s the trick to use this function.
protect content copyright
For disabling right click function:
You’ll need to add new html/javascript element to your layout.
Now go to your blogger account.
Navigate to Layout >> Add a GadGet >> and select html/javascript
Then copy the next code and past in in html/javascript text box area

<script language="JavaScript">
<!--
//Disable right mouse click Script
//By Cyber World (contact@esoftload.info) w/ mods by Software Store
//For full source code, visit http://www.esoftload.info
var message="Function Disabled!";
///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("alert(message);return false")
// -->
</script>
then save the html/javascript. and view you blog.
when you try to do right click. a message will tell you that “Function disabled”
and if you want to change this words” Function Disabled”
find the next line in the code

var message="Function Disabled!";

and change Function Disabled! to what ever you want.
For disabling copy paste function:
Log in to Blogger, go to Layout -> Edit HTML
And mark the tick-box “Expand Widget Templates
Now find this in the template:

<head>
And immediately BELOW/AFTER it, paste this code:

<!--Disable Copy And Paste-->
<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>
Click on Save Template and you are done.

1 comment:

  1. 0813
    coach outlet online
    toms outlet
    new england patriots jerseys
    nike free,nike free run,free running,free run,nike running
    the north face outlet store
    nba jerseys
    michael kors handbags
    nike air huarache,nike huarache,nike huarache sneakers,nike huarache shoes
    michael kors factory outlet, http://www.michaelkorsfactoryoutletonline.com
    nba jerseys, http://www.nbajerseys.us.com
    ugg uk
    mulberry outlet
    moncler coats
    michael kors outlet store,michael kors outlet,michael kors outlet online,michael kors,kors outlet,michael kors handbags,michael kors outlet online sale,michael kors handbags clearance,michael kors purses,michaelkors.com,michael kors bags,michael kors shoes,michaelkors,cheap michael kors
    drew brees jersey,corey white jersey,khiry robinson jersey,archie manning jersey,mark ingram jersey
    mont blanc outlet
    blake griffin jersey
    rolex watches
    mont blanc pens
    cheap ugg boots, http://www.cheapuggboots.net.co
    michael kors outlet online, http://www.michaelkorsoutletonlinstore.us.com
    tim brown jersey,art shell jersey,kenny stabler jersey,john matuszak jersey,howie long jersey
    patrick kerney jersey,bobby wagner jersey,russell okung jersey,max unger jersey,paul richardson jersey,terrelle pryor jersey,richard sherman jersey,byron maxwell jersey,derrick coleman jersey,eric winston seahawks jersey
    burberry outlet store, http://www.burberryoutletonlinestore.com.co
    hollister, http://www.hollistercanada.com
    oakley outlet
    lebron 12 shoes
    new york knicks jersey
    michael kors uk
    bears jerseys
    the north face jackets

    ReplyDelete