• Resolved nam1962

    (@nam1962)


    Hi, I use a subdomain with the epesi CRM. Epesi has continuous sql interaction. if I do activate ninjafirewall on my WP main domain, epesi is blocked.
    I tried with .htninja, placed it in my main domain directory, placed it above the main domain directory.
    My Epesi was still blocked.
    Ho coul Imanage this to work ?

    <?php
    /*
    +=============================================================+
    | NinjaFirewall optional configuration file |
    | |
    | See: http://nintechnet.com/nfwp/1.1.3/ |
    +=============================================================+
    */

    if (strpos($_SERVER[‘SCRIPT_NAME’], ‘/mymaindomain.com/crm/’) !== FALSE) {
    return ‘ALLOW’;
    }

    // do not add anything below this line.

    https://ww.wp.xz.cn/plugins/ninjafirewall/

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

    (@nintechnet)

    Hi,

    Can you check in the firewall “Overview” page if the .htninja file is detected by NinjaFirewall?
    1. If it is not, you likely have a PHP open_basedir restriction.
    2. If it is, maybe the $_SERVER[‘SCRIPT_NAME’] does not match the ‘/mymaindomain.com/crm/’ substring? You can double-check this by creating a “/mymaindomain.com/crm/test.php” script with the following content:

    <?php
    echo 'Your $_SERVER["SCRIPT_NAME"] is: ' . $_SERVER['SCRIPT_NAME'];
    ?>

    Then visit “http:// mymaindomain.com/crm/test.php”.

    Thread Starter nam1962

    (@nam1962)

    hi !
    In fact your proposal on another thread of php_value auto_prepend_file none in the .htaccess
    Does the trick !

    (I never was able to manage it with the .hjninja, even puting it in /)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘ninjafirewall & Epesi’ is closed to new replies.