How To Disable The Developer Tools of Web Browsers
In fact, you can’t disable the Developer Tools of the web browsers. But you can annoys any one who try to use the developer tool on your site, try the javascript codes blow, the codes will break all the time.
1 | <script>eval("setInterval(function(){ debugger; },1000)");</script> |
After applying this code to your website, when you open Developers Tools, the message “Paused in debugger” will appear.
This is one of ways to prevent content theft from your website. If you are use Shopify platform, this feature has been integrated into the AntiCopy app. This is a Shopify app help you to protect your site’s content from being reused by malicious merchants.
I hope you find this article is helpful.