file_get_contents is not working for some url
I use file_get_contents in PHP. In the below code in first URL works fine but the second one isn't working. $URL = "http://test6473.blogspot.com"; $domain = file_get_contents($URL); print_r($domain); $add_url= "http://adfoc.us/1575051"; $add_domain = file_get_contents($add_url); echo $add_domain; Any suggestions on why the second one doesn't work? URL which is not retrieved by file_get_contents, because their server checks whether the request come from browser or any script. If they found request from script they simply disable page contents. So that I have to make a request similar as browser