Subversion Repositories php-qbpwcf

Rev

Rev 254 | Rev 274 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 254 Rev 263
Line 24524... Line 24524...
24524
 
24524
 
24525
			#如果有達到3次
24525
			#如果有達到3次
24526
			if($count>=3){
24526
			if($count>=3){
24527
 
24527
 
24528
				#記錄攻擊者的IP
24528
				#記錄攻擊者的IP
24529
				$$attacker_ips_imap[]=$ip;
24529
				$attacker_ips_imap[]=$ip;
24530
 
24530
 
24531
				}#if end
24531
				}#if end
24532
 
24532
 
24533
			}#foreach end
24533
			}#foreach end
24534
 
24534
 
Line 24857... Line 24857...
24857
 
24857
 
24858
				#unixtime
24858
				#unixtime
24859
				$time=strtotime($info["time"]);
24859
				$time=strtotime($info["time"]);
24860
 
24860
 
24861
				#如果沒有下筆記錄
24861
				#如果沒有下筆記錄
24862
				if(!isset($risky_ips[$index+1])){
24862
				if(isset($infos[$index+1])){
24863
 
24863
 
24864
					#結束 foreach
24864
					#結束 foreach
24865
					break;
24865
					break;
24866
 
24866
 
24867
					}#if end
24867
					}#if end
24868
 
24868
 
24869
				#取得unixtime
24869
				#取得unixtime
24870
				$next_time=strtotime($risky_ips[$index+1]["time"]);
24870
				$next_time=strtotime($risky_ips[$index+1]["time"]);
24871
 
24871
 
24872
				#如果時間間隔大於60秒
24872
				#如果下筆時間記錄與當前這筆間隔大於60秒
24873
				if($next_time-$time>60){
24873
				if($next_time-$time>60){
24874
 
24874
 
24875
					#跳過,看下筆記錄
24875
					#跳過,看下筆記錄
24876
					continue;
24876
					continue;
24877
 
24877