500 Error after optimizing WAF on plugin
-
Hello,
I am trying to enable the WAF on the via wordfence and it updates the .htaccess file. As soon as that is done, the WP backend is rendering 500 error. Below is the error I see in the errorlog
.htaccess: Require not allowed in context, referer: /wp-admin/admin.php?page=WordfenceWAF&subpage=waf_options
Below is what is being added to the .htaccess file# Wordfence WAF
<IfModule mod_php5.c>
php_value auto_prepend_file '/var/www/example.com/wordfence-waf.php'
</IfModule>
<IfModule mod_php7.c>
php_value auto_prepend_file '/var/www/example.com/wordfence-waf.php'
</IfModule>
<IfModule mod_php.c>
php_value auto_prepend_file '/var/www/example.com/wordfence-waf.php'
</IfModule>
<Files ".user.ini">
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
</IfModule>
</Files>
# END Wordfence WAFIf I comment out the below lines, it starts working normally.
Am I good to keep these lines commented out or should I address this? If so, what are my options?<IfModule mod_authz_core.c>
Require all denied
</IfModule>Thanks for your help.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
The topic ‘500 Error after optimizing WAF on plugin’ is closed to new replies.