Hello,
due to masses of spams from China, Russia and a few other countries I want to make use of IP-based Request-Blockings in my Apache Webserver 2.2.
Example:
<Directory /usr/local/www/htdocs>
<FilesMatch "^index\.php\?option\=com_contact">
AllowOverride ALL
Order allow,deny
Allow from all
Deny from 212.0.0.0/8
...
...
</FilesMatch>
</Directory>
<FilesMatch "^index\.php\?option\=com_contact">
cannot match ?option=com_contact
because FilesMatch only considers the FILE index.php.
Even replacing com_contact with i.e. contact.html when enabling SEF in Joomla 1.5 does not work.
Tried it too in the .htaccess file which is responsible for the SEF rewrites.
Does anyone have an idea how to solve that problem?
I want to reduce the workload of Apache by restricting the use of those very long IP-Block-Deny-Listings to certain URIs.
Best regards
Ulrike