52.gif

Search (advanced search)
Use this Search form before posting, asking or make a new thread.
Tips: Use Quotation mark to search words (eg. "How To Make Money Online")

12-14-2011, 08:46 PM (This post was last modified: 12-14-2011 08:49 PM by BlackhatSEO.)
Post: #1
Setting User Agent Script
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]
12-14-2011, 11:04 PM
Post: #2
RE: Setting User Agent Script
ut were do you paste that code in the adress bar or edit default browser?
Thx......
Cool
03-21-2012, 10:34 PM
Post: #3
RE: Setting User Agent Script
with it we can change my agent anytime. thanks.
01-02-2014, 03:24 PM
Post: #4
RE:
Hi all! good lucky to you




57.gif