• Resolved akimernest

    (@akimernest)


    Good Day, I’ve been having several issues with optimizing the wordfence firewall. It works for some time then begins to display 404 pages all my pages except admin, it then disables itself and it then wants me to reoptimize the wordfence firewall. I also noticed it deleted everything in my .htaccess file. I would love for a solution for this. Thanks in Advance.

Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Support WFAdam

    (@wfadam)

    Hello @akimernest and thanks for reaching out to us!

    Can you send a diagnostic report to wftest @ wordfence . com? You can find the link to do so 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.

    Thanks!

    Thread Starter akimernest

    (@akimernest)

    Sorry about the late response the email has been sent.

    Plugin Support WFAdam

    (@wfadam)

    Hello @akimernest !

    I was not able to locate your diagnostic in our inbox. Can you try to “Export” the diagnostic and attach it to an email and send to wftest @ wordfence . com? Make the subject your forum username.

    Thanks again!

    Thread Starter akimernest

    (@akimernest)

    Good Day, Please note the email has been sent. Let me know if you receive it.

    Plugin Support WFAdam

    (@wfadam)

    Thanks @akimernest ! I got that one!

    Before doing any of these steps, ensure that you back up your htaccess file. Wordfence shouldn’t remove any code from the htaccess file.

    Looks like your server API is Litespeed. We will need to add this code to your htaccess:

    # Wordfence WAF
    <IfModule LiteSpeed>
        php_value auto_prepend_file '/path/to/waf/wordfence-waf.php'
    </IfModule>
    # END Wordfence WAF

    Make sure that the path above is correctly pointed at your wordfence-waf.php that should be in your sites root directory along with your htaccess file.

    Let me know how this goes!

    Thanks!

    Thread Starter akimernest

    (@akimernest)

    Hey I noticed the wordfence-waf.php’ isnt in any specific folder it is just in the public html folder so would the path be.
    `path/to/wordfence-waf.php’ not sure how this works or just paste the code in and then send a diagnostic

    • This reply was modified 3 years, 10 months ago by akimernest.
    Plugin Support WFAdam

    (@wfadam)

    If you have Wordfence install, the wordfence-waf.php should be in the root directory.

    If you look at your diagnostic you sent me, it has the path to the wordfence-waf.php. I don’t want to post your personal information here though.

    https://prnt.sc/x5ks48 Here is the section you are looking for. In the screenshot, I blurred out your filepath for wordfence-waf.php.

    Enter that path into your code that I gave you previously and it should optimize your firewall.

    Thanks!

    Thread Starter akimernest

    (@akimernest)

    Alrighty Then will let you know how it goes.

    Thread Starter akimernest

    (@akimernest)

    I didn’t optimize the firewall as yet but when I pasted it in the htaccess it said this site can’t be reached do I optimize first then put the code?

    Plugin Support WFAdam

    (@wfadam)

    You should be putting the code in the htaccess file first:

    # Wordfence WAF
    <IfModule LiteSpeed>
        php_value auto_prepend_file 'path/to/wordfence-waf.php'
    </IfModule>
    # END Wordfence WAF

    Remember to correct the path/to/wordfence-waf.php with your actual path to the wordfence-waf.php.

    Then you should just be able to refresh the Wordfence > Firewall page after a few minutes and you should now see it optimized.

    Thanks!

    Thread Starter akimernest

    (@akimernest)

    I’m not sure if I’m putting the right path but it doesn’t seem to be working it says this site can be reached. Can you send me the correct path in the email I message you.

    Plugin Support WFAdam

    (@wfadam)

    Check your email to verify the path and try to test.

    Thanks!

    Thread Starter akimernest

    (@akimernest)

    Hey it’s not causing the error any more I’m going to go an optimize now thanks a lot.

    • This reply was modified 3 years, 10 months ago by akimernest.
    • This reply was modified 3 years, 10 months ago by akimernest.
    Thread Starter akimernest

    (@akimernest)

    Seems after the code it automatically optimized itself so everything seems good.

    Plugin Support WFAdam

    (@wfadam)

    Sounds good! Glad we could get it working!

    Thanks again!

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Wordfence (Optimize The Wordfence Firewalll Issues)’ is closed to new replies.