![]() |
[solved] SetEnvIf Alternative
Hi I'm using cloudflare + litespeed
Code:
SetEnvIf CF-IPCountry CN BuzzOff=1any way to use this header for block access? :confused: |
you can use a rewrite rule to do the same thing.
|
Quote:
|
per the link you provided, CF-IPCountry is a request header.
RewriteCond %{HTTP:CP-IPCountry} ^(CN|RU|IN)$ RewriteRule .* - [F,L] |
Quote:
sometimes i need access to server without cloudflare protection and there won't be CP-IPCountry header |
Quote:
|
Quote:
RewriteCond %{HTTP:CP-IPCountry} !^(DE|NL|)$ RewriteRule .* - [F,L] this worked |
| All times are GMT -7. The time now is 04:32 PM. |