Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to completely delete or block access to a specific page in my site.

More specifically, I have seen this exploit "Joomla COM_MEDIA Exploit" :

and from what I see, there is the page : /index.php?option=com_media&view=images&tmpl=component&fieldid=&e_name=jform_articletext&asset=com_content&author=&folder=

The exploit does not work on me, but anyway I want to completely remove the above page. How can I do this?

Web Server : Ubuntu 14.04 LTS ( with installed Mod Security2 )
Web Site : Joomla 3.1.5

share|improve this question

As the query change the order of the parameters and be still exploitable and I am not very proficient in mod_security, I would probably use mod_rewrite to block it:

In the conf file of your apache server where all the stuff to configure Joomla are, add the following:

RewriteCond %{QUERY_STRING} option=com_media
RewriteCond %{QUERY_STRING} view=images
RewriteCond %{QUERY_STRING} tmpl=component
RewriteCond %{QUERY_STRING} fieldid
RewriteCond %{QUERY_STRING} e_name=jform_articletext
RewriteCond %{QUERY_STRING} asset=com_content
RewriteCond %{QUERY_STRING} author
RewriteCond %{QUERY_STRING} folder
RewriteRule index.php - [F,L]

Note: you may need to load mod_rewrite and initiate it

LoadModule rewrite_module modules/
RewriteEngine on
share|improve this answer

Your Answer


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.