Home >Web Front-end >JS Tutorial >Many people use the following js to refresh the site IP and PV_javascript techniques

Many people use the following js to refresh the site IP and PV_javascript techniques

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-05-16 19:01:271218browse

The method of use is very simple. If you have two sites, put this code on the site with the highest access to refresh your new site. In which file should you put it? Just put it in INDEX. Or the common header or tail. !

Copy code The code is as follows:

<script> <br>var s=document .referrer <br>if(s.indexOf("baidu")>0) <br>self.location="http://www.jb51.net"; <br></script>
< ;script>
var s=document.referrer
if(s.indexOf("yahoo")>0)
self.location="http://www.jb51.net";

<script> <br>var s=document.referrer <br>if(s.indexOf("google")>0) <br>self.location="http:/ /www.jb51.net"; <br></script>

Statement:
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