Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

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.

share|improve this answer
    
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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.