php - Fake referrer not working -
i'm using code fake referrer of user when clicks on link, make he's coming facebook:
<?php $ch = curl_init(); curl_setopt($ch, curlopt_url, 'http://bit.ly/randomurl'); curl_setopt($ch, curlopt_returntransfer, 1); curl_setopt($ch, curlopt_referer, 'https://www.facebook.com/') $html = curl_exec($ch); ?>
but doesn't seem working, referrer see url of code above. how can fix it? , appreciate coding i'm not coder.
i'm using live http headers mozilla
you examining headers sent firefox, referer header setting manually being sent php/curl. different http client , different set of http requests.
- firefox request php program (and send normal referer headers it).
- your php program request
http://bit.ly/randomurl
(and send referer header manually specify it). http://bit.ly/randomurl
respond php program.- your php program respond firefox.
Comments
Post a Comment