Advertisement
PhucedMODZOfficial

simple crawler ip stuff for harry

Feb 12th, 2020
2,795
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. class crawler_ip{
  3.     public function get_ip_without_crawler(){
  4.         $ip_addresses = array(
  5.             "185.135.157.53",
  6.             "52.42.49.200",
  7.             "46.229.168.149",
  8.             "178.62.23.58",
  9.             "141.8.132.31",
  10.             "94.237.29.234",
  11.             "95.108.213.43",
  12.             "107.170.248.133",
  13.             "188.166.215.12",
  14.             "88.99.84.6",
  15.             "89.221.219.62",
  16.             "52.90.197.91",
  17.             "77.75.72.17",
  18.             "212.71.247.26",
  19.             "139.59.109.12",
  20.             "46.229.168.154",
  21.             "46.229.168.130",
  22.             "54.243.132.119",
  23.             "54.252.96.247",
  24.             "95.216.162.150",
  25.             "157.245.87.235",
  26.             "116.202.105.128",
  27.             "136.243.144.166",
  28.             "46.229.168.162",
  29.             "149.28.73.26",
  30.             "206.189.135.60",
  31.             "108.59.8.70",
  32.             "54.83.5.6",
  33.             "3.18.101.215",
  34.             "198.27.81.189"
  35.         );
  36.         if(is_array($_SERVER['REMOTE_ADDR'], $ip_addresses))
  37.             return $_SERVER['REMOTE_ADDR']." is a crawler";
  38.         else
  39.             return $_SERVER['REMOTE_ADDR']." is not a crawler";
  40.     }
  41. }
  42.  
  43. $c = new crawler_ip;
  44. echo $c->get_ip_without_crawler();
  45. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement