Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You cannot detect a 301 redirect when you're only in control of the destination.


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: