How can I detect if page was requested via a redirect?

后端 未结 6 746
北海茫月
北海茫月 2021-01-06 05:00

On a client\'s website there are loads of redirects going to a particular page. This page somehow needs to have a way detecting whether the request was direct (URI typed in

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-06 05:37

    I don’t think there’s a way to do that. The only indicator I can imagine is the Referer header field. But it seems that it’s only sent if the request was initiated on a non-HTTP way (clicking a link, form submission, meta refresh, etc.).

提交回复
热议问题