.htaccess中的CF-IPCountry似乎不起作用

时间:2014-01-31 19:53:38

标签: .htaccess

我还有一个插件可以阻止Brute Force登录尝试。当我检查来自我阻止的某些国家/地区的IP时,这会捕获许多登录尝试。

#  United States
SetEnvIf CF-IPCountry US BuzzOn=1
#  United Kingdom
SetEnvIf CF-IPCountry UK BuzzOn=1
#  Great Britain
SetEnvIf CF-IPCountry GB BuzzOn=1
#  China
SetEnvIf CF-IPCountry CN BuzzOff=1
#  Russia
SetEnvIf CF-IPCountry RU BuzzOff=1
#  India
SetEnvIf CF-IPCountry IN BuzzOff=1
#  Italy
SetEnvIf CF-IPCountry IT BuzzOff=1
#  Thailand
SetEnvIf CF-IPCountry TH BuzzOff=1
#  Ukraine
SetEnvIf CF-IPCountry UA BuzzOff=1
#  Germany
SetEnvIf CF-IPCountry DE BuzzOff=1
#  Turkey
SetEnvIf CF-IPCountry TR BuzzOff=1
#  Netherlands
SetEnvIf CF-IPCountry NL BuzzOff=1
#  Brazil
SetEnvIf CF-IPCountry BR BuzzOff=1
#  Spain
SetEnvIf CF-IPCountry ES BuzzOff=1
#  Belarus
SetEnvIf CF-IPCountry BY BuzzOff=1
#  Check Republic
SetEnvIf CF-IPCountry CZ BuzzOff=1

我有什么遗失的吗?

1 个答案:

答案 0 :(得分:0)

这是您国家/地区封锁的一个好例子:)

## CF-IPCOUNTRY ##
###################
SetEnvIf CF-IPCountry "country" BuzzOff=1
Order allow,deny
Allow from all
Deny from env=BuzzOff
## CF-IPCOUNTRY ##
###################