• Resolved dadkhah

    (@dadkhah)


    Hi Guys,
    Good Day!
    I use ninja firewall and when it is “enabled”, other CMS’s in other directories dont work. how can i add a directory to exception list of ninja fire wall to ignore it?

    Thank you,

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

    (@nintechnet)

    Hi,

    You can use the .htninja file for that purpose.
    E.g., to disable the firewall in the /foo/bar/ directory:

    
    <?php
    /*
     +===================================================================+
     | NinjaFirewall optional configuration file                         |
     |                                                                   |
     | See: http://nintechnet.com/ninjafirewall/wp-edition/help/?htninja |
     +===================================================================+
    */
    
    if (strpos($_SERVER['SCRIPT_FILENAME'], '/foo/bar/') !== FALSE) {
       return 'ALLOW';
    }
    
    Thread Starter dadkhah

    (@dadkhah)

    Thank you so much!
    It work….

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘how add a directory to exception?’ is closed to new replies.