美女直播全婐网站免费,办公室里呻吟的丰满老师,国产伦精品免编号公布,欧美老熟妇乱人伦人妻

中山php|最優(yōu)網(wǎng)絡(luò)中山做網(wǎng)站 中山php建站

最優(yōu)良人

2013/03/29 at 18:55

php防止刷流量攻擊

<?php
//查詢禁止IP
$ip =$_SERVER['REMOTE_ADDR'];
$fileht=".htaccess2";
if(!file_exists($fileht))file_put_contents($fileht,"");
$filehtarr=@file($fileht);
if(in_array($ip."\r\n",$filehtarr))die("Warning:"."<br>"."Your IP address are forbided by some reason, IF you have any question Pls emill to shop@mydalle.com!");

//加入禁止IP
$time=time();
$fileforbid="log/forbidchk.dat";
if(file_exists($fileforbid))
{ if($time-filemtime($fileforbid)>60)unlink($fileforbid);
else{
$fileforbidarr=@file($fileforbid);
if($ip==substr($fileforbidarr[0],0,strlen($ip)))
{
if($time-substr($fileforbidarr[1],0,strlen($time))>600)unlink($fileforbid);
elseif($fileforbidarr[2]>600){file_put_contents($fileht,$ip."\r\n",FILE_APPEND);unlink($fileforbid);}
else{$fileforbidarr[2]++;file_put_contents($fileforbid,$fileforbidarr);}
}
}
}
//防刷新
$str="";
$file="log/ipdate.dat";
if(!file_exists("log")&&!is_dir("log"))mkdir("log",0777);
if(!file_exists($file))file_put_contents($file,"");
$allowTime = 120;//防刷新時間
$allowNum=10;//防刷新次數(shù)
$uri=$_SERVER['REQUEST_URI'];
$checkip=md5($ip);
$checkuri=md5($uri);
$yesno=true;
$ipdate=@file($file);
foreach($ipdate as $k=>$v)
{ $iptem=substr($v,0,32);
$uritem=substr($v,32,32);
$timetem=substr($v,64,10);
$numtem=substr($v,74);
if($time-$timetem<$allowTime){
if($iptem!=$checkip)$str.=$v;
else{
$yesno=false;
if($uritem!=$checkuri)$str.=$iptem.$checkuri.$time."1\r\n";
elseif($numtem<$allowNum)$str.=$iptem.$uritem.$timetem.($numtem+1)."\r\n";
else
{
if(!file_exists($fileforbid)){$addforbidarr=array($ip."\r\n",time()."\r\n",1);file_put_contents($fileforbid,$addforbidarr);}
file_put_contents("log/forbided_ip.log",$ip."--".date("Y-m-d H:i:s",time())."--".$uri."\r\n",FILE_APPEND);
$timepass=$timetem+$allowTime-$time;
die("Warning:"."<br>"."Sorry,you are forbided by refreshing frequently too much, Pls wait for ".$timepass." seconds to continue!");
}
}
}
}
if($yesno) $str.=$checkip.$checkuri.$time."1\r\n";
file_put_contents($file,$str);

-
粗大的内捧猛烈进出在线视频| 无遮挡100禁图片| 无码人妻少妇伦在线电影| 少妇又紧又色又爽又刺激视频| 久久久国产精品无码一区二区三区| 伸进同桌奶罩里摸她胸作文| 重囗味sm在线观看无码| 朋友销魂的人妻| 亚洲熟女少妇一区二区三区| 日本成熟…@视频| 国产99视频精品免视看9| 国产情侣一区二区| 国产乱人偷精品人妻a片| 国产真实乱对白精彩久久| 能收黄台的app不收费| sao货撅起你的贱屁股来| 久久av无码精品人妻糸列| 成年免费视频黄网站在线观看| 欧美丰满大胆少妇xxxooo| 寂寞少妇扒开双腿猛烈进入免费看| 久久久久久精品免费免费WEI| 中文字幕一区二区精品区| 精品人妻系列无码人妻在线不卡| 夫妇交换刺激做爰视频| 免费又黄又爽又猛的毛片| 一女被多男玩喷潮视频免费看| 一区二区三区在线 | 欧洲| 美女100%裸体| 八个少妇沟厕小便漂亮各种大屁股| 中国熟妇videosexfreexxxx片| 国产裸体舞一区二区三区| 好大好硬快点受不了了| 国产精品高潮呻吟久久av无码| 把女人弄爽的特黄A大片| 久久久久久久无码高潮| 在线精品国产一区二区三区| 精品国产亚洲第一区二区三区| 国产二级一片内射视频播放| 打开这个网站你会感谢我的| 亚洲国产AV无码专区亚洲AVL| sss极品尤物▌missa▌|