I've created a new Joomla site and trying to post a new article that contains SQL code. When ever I enter the text Declare @allowance decimal(18,2) and save the article I get the following error.

You do not have permission to access this document.

However, I can post the text Declar @allowance decimal(18,2) or just Declare or variations of it. it just throws this error on certain keyword combinations.

I've disabled Joomla's text filtering and also disabled the WYSIWYG editors. And I'm posting the article as a Super User. I can't see mod_security in the list of loaded modules on my host. So I assume this is not the cause of it.

Have you come across this error before? Any pointers please?


  • Are you using Akeeba Admin Tools or have you enhanced the security of your site with some additional .htaccess rules? Commented May 1, 2014 at 8:38
  • I have no .htaccess on the Joomla site. When I tried to add SecFilterEngine Off and SecFilterScanPOST Off to a new .htaccess file the site falls over with an internal error. Not using Akeeba Admin Tools.
    – Sivakanesh
    Commented May 1, 2014 at 9:18

2 Answers 2


Is it an error shown by the server or by Joomla? Because I would indeed suspect some server security filter here. Be it mod_security or whatever your hoster came up with.

  • I think it is a server error as there are no indications of it in the Joomla error log. And the footer of the error message says "Web Server at testsite.com". Just not sure how to figure out the cause of it.
    – Sivakanesh
    Commented Apr 30, 2014 at 14:38
  • It's better to ask on another SE site then. Like stackoverflow.com
    – Bakual
    Commented Apr 30, 2014 at 16:11
  • The hosting company has just confirmed that it is because of mod_security, but I was not able to list it. They can disable it if I wanted. Do you think it is a good idea?
    – Sivakanesh
    Commented May 1, 2014 at 13:52
  • My hoster had some funny rules in mod_security and I requested to turn it off. Had no problems since then.
    – Bakual
    Commented May 1, 2014 at 19:53
  • 1
    "You do not have permission to access this document." is definitely not found in Joomla anywhere, so the message has to be from the server. This seems like the right angle! Commented May 3, 2014 at 3:58

Your probably hitting the Joomla content filters in the configuration. Try disabling text filters.


  • While linking to documentation is the right thing to do, consider adding a few words to your answer so that it includes the basic steps that need to be followed. Commented May 1, 2014 at 18:26
  • Tried that. It's not from Joomla. It's the mod_security.
    – Sivakanesh
    Commented May 1, 2014 at 21:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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