0

Someone is sending malicious code through a form on Joomla.

I tried to delete the form but it didn't block the access.

The URI is /index.php?option=com_contact&task=view&contact_id=3&Itemid=45

How to write a rule on .htaccess that blocks access to this specific GET request?

Almino Melo
  • 101
  • 2

1 Answers1

0

The following should work for Apache 2.4+:

<If "%{QUERY_STRING} =~ /option=com_contact&task=view&contact_id=3&Itemid=45/">
 Require All Denied
</If>

This uses a regular expression, that could be too specific, so you might have to adjust it.

  • Forgot to metion I don't know what is the version I'm working on. Most probably is 2.2. I'll send an email to the server admins. – Almino Melo Oct 23 '13 at 22:51