是否可以同时使用Cloudflare IP Block和IP Range Block List?

时间:2018-04-03 18:47:28

标签: wordpress .htaccess ip cloudflare

像htaccess文件中的这个,我已经为cloudflare了:

 SetEnvIf CF-IPCountry UA BuzzOff=1
 Order allow,deny
Allow from all
Deny from env=BuzzOff

如果我也使用下面的代码,我是否也可以阻止未命中的流量? 我的意思是上面的符合cloudflare的代码泄漏了乌克兰的一些IP,我想通过htaccess完全阻止它们。

# -------------------------------------------------------
# Free IP2Location Firewall List by Country
# Source: https://www.ip2location.com/free/visitor-blocker
# Last Generated: 03 Apr 2018 18:43:08 GMT
# [Important] Please update this list every month
# -------------------------------------------------------
<Limit GET HEAD POST>
order allow,deny
allow from all
deny from 2.21.89.0/24
deny from 2.21.173.0/24
deny from 5.1.0.0/19
deny from 5.8.32.0/24
deny from 5.8.34.0/24
deny from 5.8.60.0/24
deny from 5.8.62.0/24
deny from 5.22.156.0/22
deny from 5.34.176.0/22
deny from 5.34.182.0/23
deny from 5.53.112.0/21
deny from 5.56.24.0/21
deny from 5.57.64.0/21
deny from 5.58.0.0/16
deny from 5.59.54.0/24
deny from 5.59.104.0/23
deny from 5.83.16.0/21
deny from 5.104.32.0/19
deny from 5.105.0.0/16
deny from 5.149.120.0/21
deny from 5.149.208.0/20
deny from 5.153.128.0/19
deny from 5.153.160.0/22
deny from 5.153.168.0/21
deny from 5.153.176.0/20
deny from 5.188.61.0/24
......
</Limit>

0 个答案:

没有答案