Home > php教程 > php手册 > PHP防CC攻击

PHP防CC攻击

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-21 08:52:20
Original
1441 people have browsed it

  所谓的CC攻击就是对方利用程序或一些代理对您的网站进行不间断的访问,造成您的网站处理不了而处于当机状态。这种时候您的统计系统(可能是量子、百度等)当然也是统计不到的。不过我们可以借助于一些防攻击的软件来实现,不过效果有时并不明显。下面我提供一段PHP的代码,可以起到一定的防CC效果。

  主要功能:在3秒内连续刷新页面5次以上将指向本机 http://127.0.0.1

 

01 $P_S_T  $t_array[0] + $t_array[1]; 

02 $timestamp = time();

03  

04 session_start(); 

05 $ll_nowtime $timestamp 

06
Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template