imperium2335 Posted March 9, 2010 Share Posted March 9, 2010 Hi, I have tried using curl to send fake header info to a target url and then display that website as if I had gone to it via a hyperlink, but it isn't working. It seems that curl just shows the page through my domain which isn't what I want. Can anyone help me? Thanks in advance! Quote Link to comment https://forums.phpfreaks.com/topic/194608-php-browser-with-fake-header-info/ Share on other sites More sharing options...
PFMaBiSmAd Posted March 9, 2010 Share Posted March 9, 2010 That's the whole point of displaying the URL of the actual site you are on, to prevent people from being able to trick visitors into thinking they are on a different site. If it was possible to do what you are trying, there would be fake phishing sites all over the place. Quote Link to comment https://forums.phpfreaks.com/topic/194608-php-browser-with-fake-header-info/#findComment-1023513 Share on other sites More sharing options...
salathe Posted March 9, 2010 Share Posted March 9, 2010 ... which isn't what I want. What do you want? Quote Link to comment https://forums.phpfreaks.com/topic/194608-php-browser-with-fake-header-info/#findComment-1023527 Share on other sites More sharing options...
imperium2335 Posted March 9, 2010 Author Share Posted March 9, 2010 Hi, basically I want to be able to visit a site via a hyperlink generated by another of my scripts, and have it send fake referrer info to the server, so it doesn't look like my requests all came from www.example.com. Thanks for your replys. Quote Link to comment https://forums.phpfreaks.com/topic/194608-php-browser-with-fake-header-info/#findComment-1023564 Share on other sites More sharing options...
salathe Posted March 9, 2010 Share Posted March 9, 2010 If you want to do what I think you are wanting to do then what you want to do is not possible, unless you own all of the domains which will belong to the "fake referrers". Quote Link to comment https://forums.phpfreaks.com/topic/194608-php-browser-with-fake-header-info/#findComment-1023565 Share on other sites More sharing options...
imperium2335 Posted March 9, 2010 Author Share Posted March 9, 2010 Well I was hoping to make the target website think i came from a number of different referrers like google.com etc etc. If that's not possible can you withhold referrer info all together? Quote Link to comment https://forums.phpfreaks.com/topic/194608-php-browser-with-fake-header-info/#findComment-1023567 Share on other sites More sharing options...
salathe Posted March 9, 2010 Share Posted March 9, 2010 Again, if you're trying to do what I think you're trying to do then no. The referrer information comes from the browser, it is up to them whether to send a referrer or not: your website cannot say, "don't send a referrer for the next page". Quote Link to comment https://forums.phpfreaks.com/topic/194608-php-browser-with-fake-header-info/#findComment-1023570 Share on other sites More sharing options...
imperium2335 Posted March 9, 2010 Author Share Posted March 9, 2010 If I open a fresh window and paste in a web address then the referer will be blank (i think?) Is there any way to do it like that where a new window is opened for each web address? Quote Link to comment https://forums.phpfreaks.com/topic/194608-php-browser-with-fake-header-info/#findComment-1023573 Share on other sites More sharing options...
trq Posted March 9, 2010 Share Posted March 9, 2010 curl_setopt($conn, CURLOPT_REFERER, 'foo.com'); Quote Link to comment https://forums.phpfreaks.com/topic/194608-php-browser-with-fake-header-info/#findComment-1023593 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.