Home > Backend Development > PHP Tutorial > PHP Script 回实现判断来路,对指定来路自动跳转

PHP Script 回实现判断来路,对指定来路自动跳转

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 13:19:18
Original
936 people have browsed it

PHP Script 来实现判断来路,对指定来路自动跳转
在网页 name.com/a.php页上实现判断访问来路,如果是来自 domain.com/track.php的,则自动跳转到 name.com/b.php

我只会直接自动跳转,采用以下代码 在 a.php的

<script>location="http://name.com/b.php";</script>

且一定要通过 script,好像只有这样才能带referer,其他方式,如header等,referer会显示为空白

------解决方案--------------------
document.referer

Related labels:
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
Latest Issues
Ajax submit script submission error
From 1970-01-01 08:00:00
0
0
0
How to use the created hook in the setup script
From 1970-01-01 08:00:00
0
0
0
javascript - script tag async attribute
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template