In what cases will HTTP_REFERER be empty

后端 未结 5 1324
不知归路
不知归路 2020-11-22 05:29

I know it\'s possible to get an empty HTTP_REFERER. Under what circumstances does this happen? If I get an empty one, does it always mean that the user changed it? Is gettin

5条回答
  •  时光取名叫无心
    2020-11-22 06:05

    It will also be empty if the new Referrer Policy standard draft is used to prevent that the referer header is sent to the request origin. Example:

    
    

    Although Chrome and Firefox have already implemented a draft version of the Referrer Policy, you should be careful with it because for example Chrome expects no-referrer instead of none (and I have seen also never somewhere).

提交回复
热议问题