拒绝来自其他“来源”的访问

时间:2021-06-18 09:06:24

标签: php jquery

在我的网站空间上,我对我自己的云上的文件启动了 jQuery get 命令,例如:

$.get("https://mycloud.de/file.php", function(response) {}

这很好用。 但我想禁止以下内容:

  • 直接用url打开文件
  • curl 命令到这个文件

应该只能从我的 webspace mydomain.de 和通过 $.post / $.get 访问此文件

0 个答案:

没有答案