JS code How to achieve access a page jump B normal display, and direct access to the B page will jump to a page, that is, b page can not directly access, must go through a page to jump over, to normal to the B page.
Reply content:
JS code How to achieve access a page jump B normal display, and direct access to the B page will jump to a page, that is, b page can not directly access, must go through a page to jump over, to normal to the B page.
Is it possible to do this?
A page jumps to page B at the time of the URL with parameters such as:
b.html?param=0
If the parameter exists, do not jump, direct access to a page without parameters
From A to B, and the difference between the direct access B is the HTTP header referer different, referer content is a address, direct access is empty.
So you just have to judge Referer on the B page.
PHP is used $_SERVER['HTTP_REFERER']
to judge the words.
by checkingdocument.referrer
By the way to you Baidu a little information to see!