• Resolved M-POWER

    (@phyton)


    Hi guys,

    first of all, i love to use ninjafirewall.

    We created a folder independent of WordPress and on this page / folder, our customers will reach us and upload their own photos. My question is, is there any way to add this page / folder to whitelist? By the way, when activated File Uploadss >> Disallow uploads, firewall blocks their uploading photos process but when i activated allow uploads, it works.

    But i still want to add this folder to whitelist.

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

    (@nintechnet)

    In the free WP Edition, you have to use the .htninja file to whitelist a folder.
    There’s an example that shows how to whitelist a ‘/foo/bar/’ folder:

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

    Replace it with your folder name.

    Thread Starter M-POWER

    (@phyton)

    Thank you so much. You r the best.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Is it possible to add any folder to whitelist?’ is closed to new replies.