How to Convert PHP HTTP_REFERER to Null referer
How to Convert JS document.referrer to Null referer

Forexample site http://www.refnull.com/

Recommended Answers

All 2 Replies

Regarding PHP try this:

<?php

$url = $_SERVER['QUERY_STRING'];

if($_GET)
{
    if(filter_var($url, FILTER_VALIDATE_URL) !== FALSE)
    {
        header('Location: ' . $url);
    }
}

Save it, for example, as noref.php, then use a link like this:

http://yourwebiste.tld/noref.php?http://otherwerbsite.tld

I'm not sure it's enough, but I've made few tests and seems to work.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.