관리자가 아닐때 사이트에 마우스 오른쪽버튼과 f12개발자 도구 금지시키기
head.sub.php파일에서 일정한 위치에 아래 소스를 추가해넣으시면 됩니다.
<?php if (!defined('G5_IS_ADMIN') && !$is_admin) {?><script>window.onload=function(){function e(e){return e.stopPropagation?e.stopPropagation():
window.event&&(window.event.cancelBubble=!0),e.preventDefault(),!1}
document.addEventListener("contextmenu",function(e){e.preventDefault()},!1),
document.addEventListener("keydown",function(t){t.ctrlKey&&t.shiftKey&&73==t.keyCode&&e(t),
t.ctrlKey&&t.shiftKey&&74==t.keyCode&&e(t),t.ctrlKey&&t.shiftKey&&67==t.keyCode&&e(t),
83==t.keyCode&&(navigator.platform.match("Mac")?t.metaKey:t.ctrlKey)&&e(t),
t.ctrlKey&&85==t.keyCode&&e(t),123==event.keyCode&&e(t)},!1)};function observerConsole(){var obj=Object.create(null),t=Date.now();Object.defineProperty(obj,"a",{get:function(){if(Date.now()-t>100){window.open("about:blank","_self")}}});setInterval(function(){t=Date.now();(function(){})["constructor"]("debugger")();},200)}observerConsole();</script><?php } ?>
댓글 7개
게시판 목록
개발자팁
질문은 QA에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 5006 | 기타 | 5년 전 | 1922 | ||
| 5005 | 기타 | 5년 전 | 2021 | ||
| 5004 | 기타 | 5년 전 | 2136 | ||
| 5003 | 기타 | 5년 전 | 2813 | ||
| 5002 | 기타 | 5년 전 | 2388 | ||
| 5001 | 기타 | 5년 전 | 2725 | ||
| 5000 | 기타 | 5년 전 | 4768 | ||
| 4999 | 기타 | 5년 전 | 2031 | ||
| 4998 | 기타 | 5년 전 | 2694 | ||
| 4997 | 기타 | 5년 전 | 2744 | ||
| 4996 | 기타 | 5년 전 | 2667 | ||
| 4995 | 기타 | 5년 전 | 2912 | ||
| 4994 | 기타 | 5년 전 | 2166 | ||
| 4993 | 기타 | 5년 전 | 2041 | ||
| 4992 | 기타 | 5년 전 | 1968 | ||
| 4991 | 기타 | 5년 전 | 1985 | ||
| 4990 | 기타 | 5년 전 | 2044 | ||
| 4989 | 기타 | 5년 전 | 2365 | ||
| 4988 | 기타 | 5년 전 | 2055 | ||
| 4987 | 기타 | 5년 전 | 2331 | ||
| 4986 | 기타 | 5년 전 | 2800 | ||
| 4985 | 웹서버 | 5년 전 | 4947 | ||
| 4984 | OS | 5년 전 | 3009 | ||
| 4983 | MySQL | 5년 전 | 2895 | ||
| 4982 | 기타 | 5년 전 | 2014 | ||
| 4981 | PHP | 5년 전 | 2657 | ||
| 4980 | 기타 | 5년 전 | 8976 | ||
| 4979 | 웹서버 | 5년 전 | 3079 | ||
| 4978 | 기타 | 5년 전 | 2052 | ||
| 4977 | PHP | 5년 전 | 3516 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기