I tried this in .htaccess:
Code:
SetEnvIf Remote_Addr ^99.99.99.99$ banned
<Files index.php>
Order Deny,Allow
Deny from banned
<Files>
My intention was to create list of banned IP-s by external script and add them to .hraccess, but this primer above does not work.
However this works, but it denies all access to index.php.
Code:
SetEnvIf Remote_Addr ^99.99.99.99$ banned
<Files index.php>
Order Deny,Allow
Deny from all
<Files>
It seems that syntax using SetEnvIf Remote_Addr ^99.99.99.99$ banned is not supported on Dathorn servers.