Redirecting without sending referer header

By xdseth on Dec 29, 2009

This is an example of how to redirect the browser without sending the referer http header, just like http://anonym.to/ works.

I've tested it on firefox 3.5 so, if you are using another browser, please tell me if it works there.

<html lang="en">    
<head>  
<?php
    if (isset($_GET["url"])){
        //if you redirect with meta refresh, the browser doesn't send the referer header
        echo '<meta http-equiv="refresh" content="0; URL='.htmlentities($_GET["url"],ENT_QUOTES,'UTF-8').'">'; 
    }   
?>
</head>
<body>
    <!-- Example: -->
    <a href="?url=http://google.com/">Go to google without sending referer information</a>
</body>
</html>

Comments

Sign in to comment.
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.