每个 IP 库的 Apache 目录列表限制
我需要限制除某些 IP 之外的所有用户的目录列表。知道该怎么做吗?
它的选项应该是:
Options -Indexes
假设我需要限制的目录是 /restricted/
<Directory /restricted>
Options -Indexes
</Directory>
但如何对除 127.0.0.1 之外的所有目录进行 IP 限制
任何帮助将不胜感激
i need to limit the directory listing for all users except certain IP's. Any idea how to do that?
the option for it should be:
Options -Indexes
and let's say the directory i need to restrict is /restricted/
<Directory /restricted>
Options -Indexes
</Directory>
but how to place the IP restriction for all but, for instance, 127.0.0.1
Any help will be greatly appreciated
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我使用指令是因为我在 .htaccess 中尝试过它,但当然,在您的服务器配置文件中您也可以使用该指令。
I used directive because I tried it in .htaccess, but in your server profile you can use the directive as well, of course.