Untitled


SUBMITTED BY: Alerand

DATE: May 28, 2016, 12:44 p.m.

FORMAT: Text only

SIZE: 1.0 kB

HITS: 11390

  1. <?php
  2. print curl_spoof("URL HERE");
  3. function curl_spoof($url)
  4. {
  5. $curl = curl_init();
  6. $header[] = "Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5";
  7. $header[] = "Cache-Control: max-age=0";
  8. $header[] = "Connection: keep-alive";
  9. $header[] = "Keep-Alive: 300";
  10. curl_setopt($curl, CURLOPT_URL, $url);
  11. curl_setopt($curl, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.17 Safari/537.36');
  12. curl_setopt($curl, CURLOPT_REFERER, "https://www.facebook.com/");
  13. curl_setopt($curl, CURLOPT_HTTPHEADER, $header);
  14. curl_setopt($curl, CURLOPT_ENCODING, 'gzip,deflate');
  15. curl_setopt($curl, CURLOPT_AUTOREFERER, true);
  16. curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
  17. curl_setopt($curl, CURLOPT_TIMEOUT, 10);
  18. if (!$html = curl_exec($curl))
  19. {
  20. $html = file_get_contents($url);
  21. }
  22. curl_close($curl);
  23. return $html;
  24. }
  25. ?>

comments powered by Disqus