12-14-2011, 08:46 PM
PHP Code:
<?php
//pretending to be a browser
function download_pretending($url,$user_agent='Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)')
{
$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_USERAGENT, $user_agent);
curl_setopt ($ch, CURLOPT_HEADER, 0);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_REFERER, 'http://bestblackhatforum.com');
$result = curl_exec ($ch);
curl_close ($ch);
return $result;
}//function download_pretending($url,$user_agent)
echo download_pretending('http://www.google.com/');
?>
I'll share more helpful information/guide soon.
Press THANKS or REP me if you found it useful.