Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Access denied with code 403 (phase 4)
Hello, I Installed a moodle platform in my subdomain with no problem at all, when i was configuring the appearence, it show me the error 403, and since that i cant accces. Using plesk i saw this error in the log of the subdomain:
ModSecurity: Access denied with code 403 (phase 4). Match of "rx (?:\\\\b(?:gif|(?:cws|f(?:lv|ws)|i(?:d3|hdr|nterplay)|m(?:ovi|thd)|r(?:ar\\\\!|iff)|varg|(?:ex|jf)if)\\\\b)|B(?:%pdf|\\\\.ra)\\\\b)" against "RESPONSE_BODY" required. [file "/etc/apache2/modsecurity.d/rules/comodo_free/16_Outgoing_FilterPHP.conf"] [line "20"] [id "214630"] [rev "1"] [msg "COMODO WAF: PHP source code leakage||xxxxxx.xxxxxx.co|F|3"] [data "Matched Data: <? found within RESPONSE_BODY: <!DOCTYPE html>\\x0a<html dir=\\x22ltr\\x22 lang=\\x22es\\x22 xml:lang=\\x22es\\x22>\\x0d\\x0a<head>\\x0d\\x0a <title>New Oxford Preschool</title>\\x0d\\x0a <link rel=\\x22shortcut icon\\x22 href=\\x22https://XXXX.XXXXX.co/theme/image.php/eguru/theme/1590640936/favicon\\x22 />\\x0d\\x0a <meta http-equiv=\\x22Content-Type\\x22 content=\\x22text/html; charset=utf-8\\x22 />\\x0a<meta name=\\x22keywords\\x22 content=\\x22moodle, New Oxford Preschool\\x22 />\\x0a<link rel=\\x22..."] [severity "ERROR"] [tag "CWAF"] [tag "FilterPHP"] [hostname "XXXXXX.XXXXX.co"] [uri "/index.php"] [unique_id "Xs@4o55QHcKW7RJ7kLofVwAAAEM"].
I suppose it is an error on permissions, i´ve already give -R 0770 to my moodledata directory and i proved with -R 777 to all my subdomain directory but with the same result, error 403. I appreciate a lot your help!!