Ok, since I can't use SetEnvIf parameters to do this, and was suggested to use rewrite rules to do so, I've tried this (to allow access only to US & Canadian visitors to the site):
But that doesn't do anything...
Now, I see COUNTRY_CODE in my $_SERVER variables, so... am I referencing it wrong or something?
Code:
RewriteEngine on
RewriteCond %{ENV:COUNTRY_CODE} !^(US|CA)$
RewriteRule ^(.*)$ - [F,L]
Now, I see COUNTRY_CODE in my $_SERVER variables, so... am I referencing it wrong or something?