Best Blackhat Forum

Full Version: Setting User Agent Script
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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 ($chCURLOPT_URL$url); 
curl_setopt ($chCURLOPT_USERAGENT$user_agent); 
curl_setopt ($chCURLOPT_HEADER0); 
curl_setopt ($chCURLOPT_RETURNTRANSFER1); 
curl_setopt ($chCURLOPT_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. [Image: smile.gif]
Press THANKS or REP me if you found it useful. [Image: cool.gif]
ut were do you paste that code in the adress bar or edit default browser?
Thx......
Cool
with it we can change my agent anytime. thanks.
Hi all! good lucky to you
Reference URL's