阻止空白HTTP_X_FORWARDED_FOR流量

时间:2015-07-02 02:27:13

标签: .htaccess

HTTP_X_FORWARDED_FOR空白/空htaccess时,是否可以屏蔽流量?

我试过这两个:

RewriteEngine On
RewriteCond %{HTTP:X-FORWARDED-FOR} ^.{0}$
RewriteRule .* - [F]

RewriteEngine On
RewriteCond %{HTTP:X-FORWARDED-FOR} ^$
RewriteRule .* - [F]

0 个答案:

没有答案