JS前端防止F12扒取源码

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    

    <script>
     document.oncontextmenu = function () { 
         alert('放弃吧');
         return false; 
         };
        document.onkeydown = function () {
            if (window.event && window.event.keyCode == 123) {
                event.keyCode = 0;
                event.returnValue = false;
                alert('放弃吧');
                return false;
            }
        };
    </script>
</body>
</html>

参考:https://blog.csdn.net/qq_35844359/article/details/52596730

破解方法:
下载一个扒站小助手或者扒取接口,比如某fidd 
一切都是浮云

猜你喜欢

转载自www.cnblogs.com/chenrunxuan/p/9182334.html
f12