Cloudflare and htaccess Country Block Still Misses Some Traffic from Blocked Country

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

We are using above rules on our htaccess file. But I realize I still get some traffic from RU . Why it doesnt completely block that traffic?

@fixingmywp You should use Cloudflare Access Rules

https://support.cloudflare.com/hc/en-us/articles/217074967-How-do-I-control-IP-access-to-my-site-

How did you determine you still get some traffic from RU? Example?

@cs-cf

How did you determine you still get some traffic from RU? Example?

Because Google Analytics (and others) shows constant traffic comes from that country day by day.

@hklcf
I already use that.

It is entirely possible the Google Analytics and Cloudflare use different data sources to determine where an address is located and that there can be variance between the two. Assuming that the .htaccess rule is blocking based RU country code when it sees it, then the traffic coming in must be identified as a different country in the CF-Country value.

This topic was automatically closed after 14 days. New replies are no longer allowed.