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

본문 바로가기
사이트 내 전체검색

PHP

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

페이지 정보

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

본문

$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,"/");


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

댓글목록

등록된 댓글이 없습니다.

회원로그인

회원가입

  • 게시물이 없습니다.

접속자집계

오늘
2,061
어제
4,039
최대
6,642
전체
830,576
contact : webmaster@beautipia.co.kr
Copyright © beautipia.co.kr. All rights reserved.