php - 命令拒绝、允许、拒绝来自 IP 不阻止 IP 地址,不工作
问题描述
order allow,deny
deny from 1.0.1.0/24
deny from 1.0.2.0/23
deny from 1.0.32.0/19
deny from 1.0.8.0/21
deny from 1.1.0.0/24
allow from all
我正在使用上面的代码来阻止.htaccess
. 但它不起作用。如果我删除"allow from all"
,那么网站给出forbidden for all IP address
。这有什么问题?
httpd配置如下:
<Directory /var/www/html/foldername/>
Options -Indexes +FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
任何人都可以帮忙吗?
解决方案
推荐阅读
- arrays - 未知测试用例的重复和丢失数字问题失败
- c++ - pybind11:卡在未解决的重载函数类型上
- python - Pandas 根据函数返回单独的 DataFrame 值
- html - Bootstrap:将旋转木马内的卡片居中
- azure-devops - 将代码发布到 Azure Web 应用程序中的自定义文件夹
- reactjs - 更改选择的选项时如何清除所选选项?
- arrays - 在laravel中将数组转换为JSON
- node.js - 如何确定包含多个流的流中文件的结尾?(节点)
- elasticsearch - 自定义日志字符串的 ElasticSearch Grok 模式问题
- django - 是否可以在 AppConfig 的 ready() 方法中使用固定装置填充模型?