How does PHP obtain the redirection path? For example, if www.a.com is redirected to www. B .com through headerlocation, how does www. B .com obtain the redirection to determine whether the access was redirected by www.a.com? How does PHP obtain the redirection path?
For example, if www.a.com is redirected to www. B .com through header location, how does www. B .com obtain the redirection path to determine whether the access was redirected by www.a.com?
Reply content:
How does PHP obtain the redirection path?
For example, if www.a.com is redirected to www. B .com through header location, how does www. B .com obtain the redirection path to determine whether the access was redirected by www.a.com?
Can php retrieve a referer from the header?
Js has this referer, which is the source of access. you can use it after Baidu.
Try to get it through $ _ SERVER ['http _ referer ']
The answer is that it cannot be obtained.