PHP - Detect the incoming url requesting php page from another source/url

前端 未结 2 1400
南方客
南方客 2021-02-13 01:57

Is there a way in which I can detect the URL that is calling in my php page, similar to say a GET or POST but would like to get the URL as I would like to restrict the page acce

2条回答
  •  北荒
    北荒 (楼主)
    2021-02-13 02:36

    $_SERVER["HTTP_REFERER"]
    

    is what you are looking for.

提交回复
热议问题