In what cases will HTTP_REFERER be empty

后端 未结 5 1327
不知归路
不知归路 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 05:50

    It will/may be empty when the enduser

    • entered the site URL in browser address bar itself.
    • visited the site by a browser-maintained bookmark.
    • visited the site as first page in the window/tab.
    • clicked a link in an external application.
    • switched from a https URL to a http URL.
    • switched from a https URL to a different https URL.
    • has security software installed (antivirus/firewall/etc) which strips the referrer from all requests.
    • is behind a proxy which strips the referrer from all requests.
    • visited the site programmatically (like, curl) without setting the referrer header (searchbots!).

提交回复
热议问题