How To Disable Inspect Element on Blog

How to Disable Inspect Element on Blog - What is called Inspect Element ?? A little explanation about Inspect Element is a desktop version of the default browser feature where one can see CSS, HTML and Javascript code in the Blog Template used.

In the present era, bloggers can clone the templates they want, even to the point where they are really similar to the original template. Now how to disable the Inspect Element? If your blog template doesn't want to be cloned by someone then the following tutorial is a tutorial for all of you to turn off the inspect element in the blog template.
How To Disable Inspect Element on Blog
Easy Ways to Disable Inspect Elemet in Blog Templates
The first step you have to do is log in to your Blogger account, then select Menu Theme> select Edit HTML, put the following code code above the HTML cover </ body>.
<script type='text/javascript'> //<![CDATA[ // Inspect !function t(){try{!function t(n){1===(""+n/n).length&&0!==n||function(){}.constructor("debugger")(),t(++n)}(0)}catch(n){setTimeout(t,5e3)}}(); //]]> </script>
Then Save Template

Additional
That was before deactivating the Inspect Element now we also disable the Right Click Button and the CTRL + U Button.

The method is just to add the following code.
Put the following code above the code </ head>
<noscript> <style type='text/css'> /* No Script */ body,html{overflow:hidden} .noscript{background:#e74c3c;color:#fff;padding:8% 0 0 0;position:fixed;bottom:0;left:0;top:0;right:0;z-index:1000;height:auto;-webkit-transform:translateZ(0);transform:translateZ(0);overflow:hidden} .noscript p{margin:0;text-align:center;padding:0 20px 10px 20px;margin:auto;font-size:3rem;line-height:1.5;font-family:monospace;max-width:1010px;text-transform:uppercase;font-weight:700} .noscript p span{color:#ffe88b;font-size:10rem;line-height:normal;font-weight:normal} </style> </noscript>
Then put the following code after the <body> code is right below it.
<noscript> <div class='noscript'> <p><span>&#9888;</span></p> <p>Please Enable Javascript to view our site content</p> <p>Thank you</p> </div> </noscript>
Then click the Save Template button.
In order to protect you more, you can add the following code.
Change the code <body> as below
<body oncontextmenu='return false;' onkeydown='return false;' onmousedown='return false;' ondragstart='return false' onselectstart='return false' style='user-select:none;cursor:default'>
Then put the following code above the code </ body>
<script type='text/javascript'> //<![CDATA[ // Anti Klik Kanan var message="Function Disabled!";function clickIE4(){if(2==event.button)return alert(message),!1}function clickNS4(e){if((document.layers||document.getElementById&&!document.all)&&(2==e.which||3==e.which))return alert(message),!1}document.layers?(document.captureEvents(Event.MOUSEDOWN),document.onmousedown=clickNS4):document.all&&!document.getElementById&&(document.onmousedown=clickIE4),document.oncontextmenu=new Function("alert(message);return false"); //]]> </script>
Click the Save Template Button

Cover
Maybe you can use this tutorial, but for me, I don't use it because it's valid AMP, if you want to use it please.

0 Belum ada Komentar untuk "How To Disable Inspect Element on Blog"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel