1

How can I have a custom home made short URL that performs a 301 redirect and also hides the referring site. Basically the short URL is a simple html file that contains a bitly link. Currently I'm using the following code inside the html file which is doing the trick

   <script language="javascript">
      location.replace("http://bit.ly/xxxxxxxxx")
   </script>

However but I'm seeing a large number of discrepancy between what Publishers are reporting and what bitly is reporting in terms of clicks. I'm hoping to avoid this discrepancy by doing a 301 redirect instead.

On that note, is there a free source shortening url service that does 301 while Hiding HTTP referrals? I've looked around in GitHub and the ones I've looked at so far doesn't offer such feature.

Thanks in advance

Iyad
  • 163
  • 1
  • 11

1 Answers1

2

What the client sends for a referer is up to it, not you. There is nothing you can do about this.

See this post: https://stackoverflow.com/a/1398318/362536

Turns out that the RFC for HTTP doesn't state what the client should do with the refer header, so it isn't surprising to see mixed results.

Community
  • 1
  • 1
Brad
  • 159,648
  • 54
  • 349
  • 530