Thread Starter
Matheus
(@mpassosbr8)
And in advance, this is what WordFence adds to the .htacess file:
# Wordfence WAF
<IfModule mod_php5.c>
php_value auto_prepend_file '/srv/www/wordpress/wordfence-waf.php'
</IfModule>
<IfModule mod_php7.c>
php_value auto_prepend_file '/srv/www/wordpress/wordfence-waf.php'
</IfModule>
<IfModule mod_php.c>
php_value auto_prepend_file '/srv/www/wordpress/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 WAF
Hi @mpassosbr8, thanks for getting in touch with us.
Do you still experience the same problem if you remove each <IfModule... section individually? On some hosts, the operations on “.user.ini” can be a cause of issues but I have only seen this rarely.
If nothing except for removing the whole block inserted by Wordfence seems to help, could you please send me a diagnostic report when this is the case so that you are able to access the Wordfence administration screens? You can send it to wftest @ wordfence . com by finding the link at the top of the Wordfence > Tools > Diagnostics page. Then click on “Send Report by Email”. Please add your forum username where indicated and respond here after you have sent it.
NOTE: It should look as follows – Screenshot of Tools > Diagnostic > Send by Email
Thanks,
Peter.