This may be a useful variable, but should not be relied upon. Firstly, it is not always provided (browsers can be configured so as not to provide referrers), so the code that relies on it may not work if it is not provided.
Secondly, this is a rare situation when good security will be trusted even by registered users - just because they are logged in, this does not mean that they are not trying to not do something.
Its fine to use it tentatively, but not to code with the assumption that its true ...
source
share