我正在通过slowhttptest获得DDoS。我access.log
文件中的所有条目的引用URL均为http://code.google.com/p/slowhttptest/
。我想设置我的.htaccess阻止以该URL作为其HTTP_REFERER的访问者。我能找到的所有内容都是如何阻止整个域,但是我想阻止此特定的URL。下面的代码用于阻止域,但是它将code\.google\.com/p/slowhttptest
在RewriteCond中使用吗?
RewriteCond %{HTTP_REFERER} example\.com [NC]
RewriteRule .* - [F]
只需替换example\.com
为/p/slowhttptest/
:
RewriteCond %{HTTP_REFERER} /p/slowhttptest/ [NC]
RewriteRule .* - [F]
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句