I've heard it said over and over again that you should NEVER use $_SERVER['HTTP_REFERER']
. Why?
I understand that this can easily be manipulated by a user, i.e., that the variable can be set to anything that the user wants. Thus, I completely understand why it shouldn't be trusted from a security standpoint. But if e.g. all pages that should be viewable only by authed users recheck that the user is authed, where's the danger in relying on this variable?