Join now have A, b two stations, a for friends station, b for me stand.
In the hope of judging the use of a link from a station, the visitors will be refused to the door, as long as the simple lines of JavaScript, you can catch the source of use, and make some precautions.
<script type= "Text/javascript" > var refurl=document.referrer; if (Refurl.indexof ("Wowgame") >-1) { alert ("Your source URL is:" "+document.referrer+") at present this station and the station has terminated cooperation. "); Location.replace (Refurl); } </script>
In fact, the method is really simple, so the next time if you have encountered this problem, you can also try this method, this prunes is to put it back to the Web page, and you can also spend a bit of kung fu, when the judge is a Web site, jump to a certain announcement, let users know that the two sides have terminated cooperation, the way can also earn
Application scope: Commonly used to check the source page of keywords, is generally used to determine the user through the search engine to the user, entered what keywords come in, and then to judge. The relevant link is given in the lower right corner.
JS judge visitor Source URL and keywords