• Resolved Matheus

    (@mpassosbr8)


    Hey guys,

    When I try to optimize the Wordfence firewall, my site throws 500 errors. When I remove what Wordfence adds to the .htaccess file, my site doesn’t throw errors anymore.

    How might I resolve this?

    Thanks

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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
    Plugin Support wfpeter

    (@wfpeter)

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘500 error when optimizing firewall’ is closed to new replies.