且构网

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

如果用户来自特定站点且仅该站点,我如何才能使页面仅可访问

更新时间:2023-12-02 08:15:34

如果链接到您网站的网站不是您的并且您无法修改它,您唯一能做的就是检查传入请求的标头.有一个引用键,其中包含用户来自的网站的 URL.

If the website that links to your website is not yours and you cannot modify it, the only thing that you can do is check in the headers of the incoming request. There is a referer key that has the URL of the website the user has come from.