Hi Web Developers! back again with the tech teacher. this time the tech teacher will share a tutorial on how to prevent a website or blogger from being inspected element / inspector element. For masters, masters and the like, please correct if something is not quite right, but I don't think there is and for newbies who need enlightenment, please follow and practice on their respective computers.
OK, let's continue with the tutorial, before you've come across a website that you want to take a peek at the code for, or want to know what code the owner of the web is using, but when you inspect it, the debugger can't even appear, it's annoying. Just go straight to the tutorial.
First
Add the following JavaScript code above the closing body </body>
<script>
!function t() { try { !function t(n) { 1 === ("" + n / n).length && 0 !== n || function () { }.constructor("debugger")(), t(++n) }(0) } catch (n) { setTimeout(t, 5e3) } }();
</script>
Try this code in you editor to see the result by yourself.
So Hopefully it's useful, thank you.