How To Disable Ctrl + U, Ctrl + C, And Right Click in Blogger - All Type Free Info Here Domain, Hosting, Blogger, Wordpress, Blogger Tools, Seo Tips, Blogger seo,

Latest

Sunday, August 15, 2021

How To Disable Ctrl + U, Ctrl + C, And Right Click in Blogger

 

How To Disable Ctrl + U, Ctrl + C, And Right Click in Blogger

HELLO FRIENDS TODAY I M SHARING WITH YOU HOW TO DISABLE CTRL + C, CTRL + U, AND RIGHT CLICK IN BLOGGER | BLOGSPOT


Disable Ctrl + U, Ctrl + C, And Right Click in Blogger

DISABLE ALL TYPE SHORTCUT KEY AND RIGHT CLICK IN YOUR SITE OR BLOG

GO TO YOUR BLOG DASHBOARD CLICK ON THE THEME 

How To Disable Ctrl + U, Ctrl + C, And Right Click in Blogger

THEN CLICK ON THE EDIT HTML BUTTON

How To Disable Ctrl + U, Ctrl + C, And Right Click in Blogger

THEN ADD THE JAVASCRIPT CODE BELOW <head> SECTION

How To Disable Ctrl + U, Ctrl + C, And Right Click in Blogger

How To Disable Ctrl + U, Ctrl + C, And Right Click in Blogger

1: DISABLE CTRL + C, CTRL + U, AND RIGHT CLICK JAVASCRIPT CODE

<script type='text/javascript'>
var isCtrl = false;
document.onkeyup=function(e)
{
if(e.which == 17)
isCtrl=false;
}
document.onkeydown=function(e)
{
if(e.which == 17)
isCtrl=true;
if((e.which == 85) || (e.which == 67) &amp;&amp; isCtrl == true)
{
// alert(&#8216;Keyboard shortcuts are cool!&#8217;);
return false;
}
}
var isNS = (navigator.appName == "Netscape") ? 1 : 0;
if(navigator.appName == "Netscape") document.captureEvents(Event.MOUSEDOWN||Event.MOUSEUP);
function mischandler(){
return false;
}
function mousehandler(e){
var myevent = (isNS) ? e : event;
var eventbutton = (isNS) ? myevent.which : myevent.button;
if((eventbutton==2)||(eventbutton==3)) return false;
}
document.oncontextmenu = mischandler;
document.onmousedown = mousehandler;
document.onmouseup = mousehandler;
</script>

2: DISABLE CTRL + U JAVASCRIPT CODE
ENABLE CTRL + C & MOUSE RIGHT CLICK

<script type='text/javascript'>

var isCtrl = false;

document.onkeyup=function(e)

{

if(e.which == 17)

isCtrl=false;

}

document.onkeydown=function(e)

{

if(e.which == 17)

isCtrl=false;

if((e.which == 85) || (e.which == 67) &amp;&amp; isCtrl == true)

{

// alert(&#8216;Keyboard shortcuts are cool!&#8217;);

return false;

}

}

var isNS = (navigator.appName == &quot;Netscape&quot;) ? 1 : 0;

if(navigator.appName == &quot;Netscape&quot;) document.captureEvents(Event.MOUSEDOWN||Event.MOUSEUP);

function mischandler(){

return false;

}

</script>

3: DISABLE CTRL + U & CTRL + C JAVASCRIPT
ENABLE MOUSERIGHT CLICK

<script type='text/javascript'>

var isCtrl = false;

document.onkeyup=function(e)

{

if(e.which == 17)

isCtrl=false;

}

document.onkeydown=function(e)

{

if(e.which == 17)

isCtrl=true;

if((e.which == 85) || (e.which == 67) &amp;&amp; isCtrl == true)

{

// alert(&#8216;Keyboard shortcuts are cool!&#8217;);

return false;

}

}

var isNS = (navigator.appName == &quot;Netscape&quot;) ? 1 : 0;

if(navigator.appName == &quot;Netscape&quot;) document.captureEvents(Event.MOUSEDOWN||Event.MOUSEUP);

function mischandler(){

return false;

}

</script>

 

No comments:

Post a Comment