如何在PHP之前检测用户来自的网站?

在使用PHP访问我的网站之前,如何检测用户来自的网站?

解决方法:

尝试这个:

$_SERVER['HTTP_REFERER']

有关更多信息,请参阅HTTP referrer

The referrer, or HTTP referrer—also
kNown by the common misspelling
referer that occurs as an HTTP header
field—identifies, from the point of
view of an internet webpage or
resource, the address of the webpage
(commonly the URL, the more generic
URI or the i18n updated IRI) of the
resource that links to it. By checking
the referrer, the new page can see
where the request came from.

相关文章

统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
前言 之前做了微信登录,所以总结一下微信授权登录并获取用户...
FastAdmin是我第一个接触的后台管理系统框架。FastAdmin是一...
之前公司需要一个内部的通讯软件,就叫我做一个。通讯软件嘛...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...