繁体   English   中英

Htaccess IP 地址拒绝限制

[英]Htaccess IP address Deny Limit

我使用拒绝所有代理 ip 列表构建了 hta 访问文件,这些列表是我从所有免费代理网站收集的,以及我在 Ubuntu 18.04 上的 apache 服务器的一些溢价。 它有效并禁止列表。 但是,当列表中的 ip 数可能超过 200 时,它给了我这个错误

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

我打开了日志文件,这是结果

[Tue Feb 25 02:30:01.233297 2020] [core:alert] [pid 3118] [client 127.0.0.1:48874] /var/www/html/.htaccess: deny requires at least two arguments, 'from' followed by hostnames or IP-address wildcards

我不知道出了什么问题,因为它适用于一小部分 ips 但不是很多(10000 ips)感谢您的帮助

我找到了解决方案,我的一个 ip 列表是空的

deny from 47.73.177.8192
deny from
deny from 132.478.372.478

谢谢你的帮助

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM