In what cases will HTTP_REFERER be empty

后端 未结 5 1273
不知归路
不知归路 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:09

    I have found the browser referer implementation to be really inconsistent.

    For example, an anchor element with the "download" attribute works as expected in Safari and sends the referer, but in Chrome the referer will be empty or "-" in the web server logs.

    click to download
    

    Is broken in Chrome - no referer sent.

提交回复
热议问题