• Hi,

    first of all, i really like NinjaFirewall. I use this Plugin for every Website and i never get Problems with them. I also never had an hacked Website.
    Really love it.

    But i have one Question/Feature Request:

    Please add an Option for WP-CLI to activate the Full WAF Mode. That would be really nice. Or its enough to manual create the “.user.ini” file? Because i dont know if there are also database changes when activate Full WAF Mode.

Viewing 1 replies (of 1 total)
  • Plugin Author nintechnet

    (@nintechnet)

    You can manually create the .user.ini.
    It should look like this:

    ; BEGIN NinjaFirewall
    auto_prepend_file = "/full/path/to/wp-content/nfwlog/ninjafirewall.php"
    ; END NinjaFirewall
    

    The BEGIN and END placeholders are important because if you uninstalled NinjaFirewall, it would search for them in order to delete the directive from the INI file.
    That’s all, nothing else is needed.

    I’m not sure we can add this feature from WP CLI, because on some configuration, the PHP CLI interpreter may not load the INI file and the firewall will not know if it’s loaded or not.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.