如何阻止用户使用.htaccess只看到我的文件?
我有一个.json文件,并且我正在使用Ajax获取数据,但是我希望没有人能够看到该文件或使用它。
这是行不通的,因为为什么我甚至无法与Ajax访问
<Files "*.json">
Order Deny, Allow
deny from all
allow from localhost
</Files>
我希望没有人能看到该文件或使用该文件,只有我的网站,以及任何访问我的网站的人都看不到它也
I have a .json file, and I'm using ajax to get the data, but I would like no one to be able to see the file, nor use it.
This doesn't work, because why not even i can access with ajax
<Files "*.json">
Order Deny, Allow
deny from all
allow from localhost
</Files>
I wish that no one could see the file or use it, only my website, and anyone who accesses my website can't see it too
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论