php how to find the location where a user came from?

前端 未结 3 1249
抹茶落季
抹茶落季 2021-01-02 23:15

simple question:

how to find the location (url) where a user came from before accessing my page?

and

how to find the locati         


        
3条回答
  •  误落风尘
    2021-01-02 23:51

    To the first question:

    Usually if someone comes to your page via a link or something like this a HTTP referer entry points to the refering page. See rfc2616

    Second question:

    If you have a link which links to an external page you may notice this by wrapping these links with some script. If someone types in a page by hand you will not be able to determine the location where the user went.

提交回复
热议问题