title: Redirect while clearing referrer. php if possible
body: <p>I have a php script that check if the referrer has been cleared after a short process, if it is it forwards to the destination, if it isn't blanked, the process I used for clearing the referrer restarts. It works so far, this is the code I used:</p>
  
  <pre><code>&lt;?php
  $referer = $_SERVER['HTTP_REFERER'];
  if($referer == "")
  {
  echo "&lt;meta http-equiv=\"refresh\" content=\"0;url=http://sitetogoto.com\"&gt;";
  }
  else
  {
  echo "&lt;meta http-equiv=\"refresh\" content=\"0;url=http://sitewherereferrergetsclearedagain.com\"&gt;";
  }
  ?&gt; 
  </code></pre>
  
  <p>This seems to work so far if I click a link that brings me to that script, it brings me to sitetogoto.com without a referrer. However, I have noticed when using an autosurf for example, I get stuck in an endless redirect where the referrer just doesn't clear... Any idea why?</p>
  
  <p>Regards</p>