Quote:
I have a list for a specific country which I wanna block via apache conf (order allow/deny)
|
Are you using something like that?
Code:
order allow,deny
allow from all
deny from 111.111.
deny from 222.222.
deny from 333.333.
If that's the case, you can use mod_rewrite:
Code:
RewriteEngine on
RewriteCond %{REMOTE_ADDR} ^111\.111\.$ [OR]
RewriteCond %{REMOTE_ADDR} ^222\.222\.$ [OR]
RewriteCond %{REMOTE_ADDR} ^333\.333\.$ [OR]
RewriteCond %{REQUEST_URI} !^/index2.php
RewriteRule ^(.*) http://%{HTTP_HOST}/index2.php [L]