특정파일에서 연타방지 (급한대로..) > PHP

본문 바로가기

사이트 내 전체검색

뒤로가기 PHP

특정파일에서 연타방지 (급한대로..)

페이지 정보

작성자 최고관리자 작성일 21-02-09 11:43 조회 4,938 댓글 0

본문

$agentfile = "현재파일명";
 $Chktime = mktime();
 if($HTTP_COOKIE_VARS[chkfile] == $agentfile && ($Chktime - $HTTP_COOKIE_VARS[chktime]) <= 2){
    setcookie("chktime","",0,"/");
    echo"
          <script>
              alert('경고문.!');
              location.reload();
          </script>
    ";     
    exit;
 }
 setcookie("chkfile",$agentfile,0,"/");
 setcookie("chktime",$Chktime,0,"/");


 <-- 자작소스 ........  재대로 될려나.....

댓글목록 0

등록된 댓글이 없습니다.

Copyright © beautipia.co.kr. All rights reserved.

contact : webmaster@beautipia.co.kr

PC 버전으로 보기