Re:DuckDuckGo Searches Are Not Anonymous
by jacquesm on Wednesday May 19, 2010 @03:51PM
(#1362118)
Not sure if that will work in all browsers, iirc a 301 or a 302 can still pass those headers on. The only trick I know of that will not do that is by using a 'meta refresh' with a time set to '0', but that has bad implications for the working of the 'back' button.
[ Parent
| on HN ]
I haven't tested this out, but I don't see why something like this wouldn't work...
<?php
header("Location: the-result.com");
header("Referer: ");
?>Referer is a header the browser sends, Location is a header the server sends. Also, the Location header needs either a relative url on the local machine or a fully qualified one. In this case it would have needed a fully qualified one.
So maybe you should have tested it ;) ?