You might have noticed your website gives an error feedback when trying to execute a command or simply trying to navigate through the site. The exact error below is caused by ModSecurity rules which have been triggered for your website. ModSecurity is an Apache module which works as a web application firewall. It blocks known exploits and provides protection from a range of attacks against web applications. However, sometimes, mod_security may incorrectly determine that a certain request is malicious, while it is actually legitimate. In such a situation, your hosting provider can white-list the triggered mod_security rule on the server so that you can bypass the block.
You don’t have permission to access this resource.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument
The best cause of action for solving this exact type of error is to contact your hosting support for them to whitelist your triggered mod security. Only do this if you are completely sure your website isn’t actually being exploited; Scan your website first and then proceed.
ModSecurity is a plug-in module for Apache that works like a firewall. It functions through rule sets, which allow you to customize and configure your server security. Most hosting services don’t have ModSecurity preinstalled and is only accessible by the hosting providers.
Note: A corrupted .htaccess file will not give this exact error and so dont tackle it from there.