Skip to main content
Version: 8.2411.x.x RR

Using country codes in your configuration

You may use the client's country code within your configuration via environment variables, e.g. within a RewriteFilter's conditional rules or within a LUAFilter.

Example using a RewriteFilter to allow access from DACH countries only:

 <filter>

<filter-name>LocalAccessOnly</filter-name>
<filter-class>
ch::nevis::isiweb4::filter::rewrite::RewriteFilter
</filter-class>
<init-param>
<param-name>RequestURI</param-name>
<param-value>
!Condition:ENV:QS_Country:(DE)|(CH)|(AT)|(LO)|(PV)
.*:/errorpages/forbidden.html:R
</param-value>
</init-param>
</filter>