• Resolved John

    (@biztechq)


    Hi,

    I have Wordfence installed and when starting the installation of NinjaFirewall I get the following message:

    NinjaFirewall detected that the PHP auto_prepend_file directive seems to be used by another application: /home/biztech/public_html/wordfence-waf.php. Because NinjaFirewall needs to use that directive, it will orverride your current one.

    Any idea what I should do next?

    John

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author nintechnet

    (@nintechnet)

    Hi,

    You can have only one application using the PHP auto_prepend_file directive. That’s a PHP restriction.
    If you want to install NinjaFirewall, it will disable the “/home/biztech/public_html/wordfence-waf.php” firewall from your PHP INI file. You could still use Wordfence to scan your site as usual, that’s not a problem. But you should run only one web application firewall and not attempt to stack them (that would not make your site twice more secure).
    I stress on the fact that I’m talking about WAF, i.e., the firewall that filters all incoming request before WordPress is loaded. Security plugins that do not have a WAF can be stacked, that’s usually not a problem.

    Thread Starter John

    (@biztechq)

    Thanks. I installed NinjaFirewall and removed Wordfence because it seems Wordfence don’t want to work with my choice of allowing NinjaFirewall to use this file. It immediately prompts me to override the NinjaFirewall setting and let it use the auto_prepend_file directive. Will look for an alternative to Wordfence that does not mess with NinjaFirewall.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘NinjaFirewall + Wordfence + PHP auto_prepend_file’ is closed to new replies.