本文主要是介绍爬虫f12跳转和debugger检测,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
在空白页面的控制台运行解决重定向再复制url到网页
//解决重定向
(() => {window.onbeforeunload= ()=>{debugger;return false;}})();
//构造方法无限debugger
(() => {Function.prototype.constructor = Function.prototype.constructor;Function.prototype.constructor = function(){if(arguments && typeof arguments[0] === 'string'){if ("debugger" === arguments[0]){return null}return Function.prototype.constructor_.apply(this,arguments);}}})();
//药监局过debugger 在网站第二个debugger加载之前运行
var _constructor = constructor;
Function.prototype.constructor = function(s) {
if (s == “debugger”) {
console.log(s);
return null;
}
return _constructor(s);
}
这篇关于爬虫f12跳转和debugger检测的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!