Hacker News new | ask | show | jobs
by kbolino 506 days ago
You cannot detect a 301 redirect when you're only in control of the destination.
1 comments

Not through the referrer?
If you navigate straight to bad-domain.com which redirects to good-domain.com, there will be no referer at all.

If you click a link on red-herring.com which points to bad-domain.com, which then redirects to good-domain.com, the referer will be red-herring.com (if not disabled entirely).

HTTP redirects have no effect on the referer.