How to Convert PHP HTTP_REFERER to Null referer
How to Convert JS document.referrer to Null referer
Forexample site http://www.refnull.com/
How to Convert PHP HTTP_REFERER to Null referer
How to Convert JS document.referrer to Null referer
Forexample site http://www.refnull.com/
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.
I used your code. For following link I got referer
<a href="http://localhost/code/NullRef/noref.php?http://localhost/code/NullRef">Null Ref test link </a>
<?php
$ref=$_SERVER['HTTP_REFERER'];
echo"$ref";
?>
Output
http://localhost/code/NullRef/
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.