0
Welcome Guest! Login
0 items Join Now

ROCKETTHEME IS CLOSING ON JUNE 30, 2025. As a thank-you to our community, enjoy 50% off all themes with the promo code THANKYOU before we shut down. Read our Farewell Blog Post for more details.

Matching an Joomla-URI with Apache?!

    • Ulrike's Avatar
    • Ulrike
    • Hero Rocketeer
    • Posts: 415
    • Thanks: 13

    Matching an Joomla-URI with Apache?!

    Posted 13 years 5 months ago
    • 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

Time to create page: 0.070 seconds