Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>The referer is set by your browser, not by any server side mechanism. You could, I guess, construct a proxy in PHP that makes the request of the remote server and sets the referer header appropriately. It seems more useful to just use a Firefox plugin, e.g. <a href="http://www.stardrifter.org/refcontrol/" rel="nofollow noreferrer"><a href="http://www.stardrifter.org/refcontrol/" rel="nofollow noreferrer">http://www.stardrifter.org/refcontrol/</a></a>.</p> <p>Edit: I'd reword your question to make it clear you want to write a PHP proxy, with a custom referrer header. I'd probably just modify something like <a href="http://sourceforge.net/projects/poxy/" rel="nofollow noreferrer"><a href="http://sourceforge.net/projects/poxy/" rel="nofollow noreferrer">http://sourceforge.net/projects/poxy/</a></a> to take the referrer parameter and pass it on.</p> <p>Edit again: You may be clear on what you're asking, but asking for the impossible doesn't make it possible. The browser is responsible for setting the referrer header; it uses the URI that caused it to redirect to a new resource. You're asking for a script that says "Please visit <a href="http://example.net" rel="nofollow noreferrer">http://example.net</a>, but pretend that I'm actually www.foo.com when you do so". There is no mechanism for the server to instruct the browser to "lie" about where it came from.</p> <p>I suppose it may be possible via some convoluted JavaScript hacking, but it would be hacking in the black hat sense - a web site being able to force a browser to spoof the referrer would be a real security hole.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload