• Resolved helveticate

    (@helveticate)


    HI, I’m struggling to get the firewall up on one of my sites, I recently had a malware attack that affected a bunch of my websites on the same server which is what lead me to wordfence. The server runs UNIX/Apache 2.4 PHP 8.1 and whats weird is its reccommending NGINX for this one but the other websites that the firewall is working on reccomends Apache+ mod_php and works fine right out the gate

    But as I don’t recognise or can find the file shown,

    I’m not sure where to go. I can’t tell if this file is wordpress or leftover from the malware attack. We resolved it by rolling back and my webhoster rescanned the whole site and declared it clean enough to reopen.

    Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Support wfpeter

    (@wfpeter)

    Hi @helveticate, thanks for reaching out.

    Sometimes I might assume your host or another product is requiring that line to be there. However, given the circumstances of a recent site-cleaning and your other sites on the same server not presenting this I’d say it’s almost certainly not required. Make a note of the full var/site... path above just in case that assumption is incorrect and you need to reinstate it. I’ve seen one tutorial that mentions creating a file like this for custom error handling, but if you didn’t do this yourself then we can rule it out.

    The INCLUDE option in our optimization wizard would include the auto_prepend.php file inside wordfence-waf.php so that they both load, taking auto_prepend_file for itself to make sure nothing on your site loads before Wordfence. I am reasonably suspicious of the path above being linked to your recent issues, so you should be able to OVERRIDE.

    Thanks,
    Peter.

Viewing 1 replies (of 1 total)
  • The topic ‘Struggling to optimize firewall on one site but fine on others?’ is closed to new replies.