So I have an admin area where I have a link to a few external sites and I didn't want the location of my admin area showing up in their Google Analytical or other referral trackers so I made a simple redirect.php file in the root to redirect to the site with the intention of the redirect page showing in their stats etc.
<?php
if(isset($_GET['url']))
{
$url = base64_decode($_GET['url']);
header('Location:'.$url);
echo '<a href="'.$url.'">Click here if not redirected</a>';
exit;
}
else
{
header('Location: http://www.mysitedomain.com');
exit;
}
The base64 is just to make sure I transfer the url in full.
I was surprised when this didn't work and the real location of my admin area was showing in the referral.
Now I have other security measures like htaccess password etc but I'd feel more comfortable if the location of the admin area was also hidden.
So any advice on how to do this or is their anyway to hide where your coming from or any other suggestions or ideas on this.
Thanks in advance.