且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

除非来自特定页面,否则限制对页面的访问

更新时间:2023-12-02 10:21:40

如果你加密了一个变量怎么办?日期)并将其放在门链接中。当您到达新页面时,脚本会对变量进行解密,如果它不匹配或者甚至不匹配,脚本会重定向到另一个页面。

What if you encrypted a variable (like the current date) and placed that in the "gate" link. When you arrive at the new page, a script decrypts the variable and if it doesn't match or isn't even there, the script redirects to another page.

Something喜欢:

Something like:

<a href="restricted.php?pass=eERadWRWE3ad=">Go!</a>

编辑:我不太清楚JS打印该代码但我知道几个库,可以为你做所有的加密/解密。

Edit: I don't know JS well enough to print that code but I know there are several libraries out there that can do all the encryption/decryption for you.