Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class crawler_ip{
- public function get_ip_without_crawler(){
- $ip_addresses = array(
- "185.135.157.53",
- "52.42.49.200",
- "46.229.168.149",
- "178.62.23.58",
- "141.8.132.31",
- "94.237.29.234",
- "95.108.213.43",
- "107.170.248.133",
- "188.166.215.12",
- "88.99.84.6",
- "89.221.219.62",
- "52.90.197.91",
- "77.75.72.17",
- "212.71.247.26",
- "139.59.109.12",
- "46.229.168.154",
- "46.229.168.130",
- "54.243.132.119",
- "54.252.96.247",
- "95.216.162.150",
- "157.245.87.235",
- "116.202.105.128",
- "136.243.144.166",
- "46.229.168.162",
- "149.28.73.26",
- "206.189.135.60",
- "108.59.8.70",
- "54.83.5.6",
- "3.18.101.215",
- "198.27.81.189"
- );
- if(is_array($_SERVER['REMOTE_ADDR'], $ip_addresses))
- return $_SERVER['REMOTE_ADDR']." is a crawler";
- else
- return $_SERVER['REMOTE_ADDR']." is not a crawler";
- }
- }
- $c = new crawler_ip;
- echo $c->get_ip_without_crawler();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement