Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 2 个网站中有一些 php 脚本,我想限制它们只能从这些网站中调用。有没有办法做到这一点?就像一些网站禁用热链接并将用户发送到该站点不允许热链接的页面......
您可以手动完成
if(refferer == validHost){ //允许访问 }else{ //抛出异常 }
确定引荐站点的 IP 地址