如何将不需要的IP锁定在.htaccess中?
在大多数情况下,.htacess似乎从我的网站上锁定了不需要的访客。 但是有些坏男孩能够穿透我的.htacess保护。 例子: 坏男孩的IP 46.161.11.xx。 因此,我写入了.htaccess文件:
Require not ip 46.161.11.
但这无济于事。 因此,我将其更改为:
RewriteCond %{REMOTE_ADDR} ^46\.161\.11\.([1-9]?\d|[12]\d\d)$ [NC]
RewriteRule ^.* - [F,L]
但这也无济于事。
Apache中有更有效的IP锁吗? 提前提示您的提示。
In most cases, the .htacess seems to lock out unwanted visitors from my site.
But some bad boys are able to penetrate my .htacess protection.
Example:
The bad boy is has the IP 46.161.11.xx .
So I wrote into the .htaccess file:
Require not ip 46.161.11.
But this did not help.
So I changed it to:
RewriteCond %{REMOTE_ADDR} ^46\.161\.11\.([1-9]?\d|[12]\d\d)$ [NC]
RewriteRule ^.* - [F,L]
But this does not help, too.
Is there a more effective IP lock in Apache?
Thx in advance for your hints.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这似乎是我的解决方案:
This seems to be my solution: