답변 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>
댓글을 작성하려면 로그인이 필요합니다.
<script>
Object.defineProperty(console, '_commandLineAPI', {
get: function () {
throw '콘솔 차단' //수정
}
});
</script>
댓글을 작성하려면 로그인이 필요합니다.
어떤 상황에서 저런 메시지가 떠야하는 건가요?
"개발자 도구 감지"란게 무얼 의미하는지요?
답변에 대한 댓글 2개
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인