In the case of F12 censored elements, it is possible to randomly change the code, inject malicious JS, etc. to avoid this situation as follows:
1. Block F12 censorship elements
<script> document.onkeydown = function () { if (window.event && window.event.keyCode == 123) { alert("F12 is disabled"); event.keyCode = 0; event.returnValue = false; } if (window.event && window.event.keyCode == 13) { window.event.keyCode = 505; } if (window.event && window.event.keyCode ==
…
The post js disable right mouse button and disable F12 view source code first appeared on Lenix Blog .
This article is reprinted from https://blog.p2hp.com/archives/8744
This site is for inclusion only, and the copyright belongs to the original author.