답변 3개
구글링하니 아래와 같은 소스가 제일 비슷하게 접근하는 듯 하네요.
<script>
!function() {
function detectDevTool(allow) {
if(isNaN(+allow)) allow = 100;
var start = +new Date();
debugger;
var end = +new Date();
if(isNaN(start) || isNaN(end) || end - start > allow) {
alert('DEVTOOLS detected. all operations will be terminated.');
document.write('DEVTOOLS detected.');
}
}
if(window.attachEvent) {
if (document.readyState === "complete" || document.readyState === "interactive") {
detectDevTool();
window.attachEvent('onresize', detectDevTool);
window.attachEvent('onmousemove', detectDevTool);
window.attachEvent('onfocus', detectDevTool);
window.attachEvent('onblur', detectDevTool);
} else {
setTimeout(argument.callee, 0);
}
} else {
window.addEventListener('load', detectDevTool);
window.addEventListener('resize', detectDevTool);
window.addEventListener('mousemove', detectDevTool);
window.addEventListener('focus', detectDevTool);
window.addEventListener('blur', detectDevTool);
}
}();
</script>
댓글을 작성하려면 로그인이 필요합니다.
</p>
<p><script></p>
<p> </p>
<p>Object.defineProperty(console, '_commandLineAPI', {</p>
<p>get: function () {</p>
<p>throw '콘솔 차단' //수정</p>
<p>}</p>
<p>});</p>
<p></script></p>
<p>
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인