Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2016
666
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. <?php
  2.  
  3. $ips = array(
  4. '104.144.225.91:3128',
  5. '192.3.205.131:3128',
  6. '104.227.61.189:3128',
  7. '104.144.148.157:3128',
  8. '75.127.7.84:3128',
  9. '107.173.252.98:3128',
  10. '192.241.110.4:3128',
  11. '23.95.103.10:3128',
  12. '107.152.189.158:3128',
  13. '104.227.92.183:3128',
  14. '138.128.51.194:3128',
  15. '138.128.67.91:3128',
  16. '192.241.65.152:3128',
  17. '138.128.108.49:3128',
  18. '192.186.168.200:3128',
  19. '107.152.131.148:3128',
  20. '104.168.4.222:3128',
  21. '23.254.48.126:3128',
  22. '104.144.116.182:3128',
  23. '192.241.84.99:3128'
  24. );
  25.  
  26. $url = 'http://idle-empire.com';
  27.  
  28. $proxy = $ips[rand(0, count($ips) - 1)];
  29.  
  30. echo "curl request from ".$_SERVER['SERVER_ADDR']." with ".$proxy." to ".$url."...<br><br>";
  31.  
  32. $ch = curl_init();
  33. curl_setopt($ch, CURLOPT_URL,$url);
  34. curl_setopt($ch, CURLOPT_PROXY, $proxy);
  35. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  36. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  37. curl_setopt($ch, CURLOPT_HEADER, 1);
  38. $curl_scraped_page = curl_exec($ch);
  39. curl_close($ch);
  40.  
  41. var_dump($curl_scraped_page);
  42.  
  43. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement