【问题标题】:Denying Access to Particular IPs on Apache拒绝访问 Apache 上的特定 IP
【发布时间】:2014-01-30 18:50:21
【问题描述】:

我的一个网站不断受到来自特定国家/地区的垃圾邮件发送者的攻击。

有四个罪魁祸首 IP 被证明是令人讨厌的。

我已尝试使用 Apache 的 mod_access 实用程序,并将以下行添加到我的 .htaccess 中

<Limit GET POST>
order allow,deny
Allow from all
deny from 201.xx.xx.xx
deny from 202.xx.xx.x
deny from 201.xx.xx.xx
deny from 201.xx.xxx.xx
</Limit>

但是出于某种原因,垃圾邮件发送者仍然能够访问我的网站,并且垃圾邮件从上述 IP 持续

谁能告诉我到底哪里出错了。

【问题讨论】:

  • 注释掉&lt;Limit&gt;
  • 你确定你有order allow,deny,而不是order deny,allow

标签: apache .htaccess spam-prevention mod-access


【解决方案1】:

去掉限制

order allow,deny
deny from 201.xx.xx.xx
deny from 202.xx.xx.x
deny from 201.xx.xx.xx
deny from 201.xx.xxx.xx
allow from all

【讨论】:

    猜你喜欢
    • 2020-02-15
    • 1970-01-01
    • 1970-01-01
    • 2021-11-24
    • 2017-01-15
    • 2010-09-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多