Home > Backend Development > PHP Tutorial > PHP会判断来源页是某种跳转过来的吗

PHP会判断来源页是某种跳转过来的吗

WBOY
Release: 2016-06-13 12:17:23
Original
1457 people have browsed it

PHP能判断来源页是某种跳转过来的吗
比如我的来源页跳转到目标页如(window.loaction.href="http://www.xx.com/xx.php")
那么问题来了 http://www.xx.com/xx.php这个页面是否知道来源页是经过js的跳转过来的呢?
更直接一点我就想知道php是否能判断来源页是手工点击进来还是程序自动跳转的?
------解决思路----------------------
你可以打印$_SERVER对比js跳转过去和直接输入地址有什么不同,一般是referer

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template