Title: exclude plugin
Last modified: January 6, 2023

---

# exclude plugin

 *  Resolved [Ocio132](https://wordpress.org/support/users/ocio132/)
 * (@ocio132)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/exclude-plugin-12/)
 * Hi, is there a way to exclude this without having to disable anything from the
   plugin?
 * [https://ibb.co/DMD7Gkm](https://ibb.co/DMD7Gkm)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fexclude-plugin-12%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/exclude-plugin-12/#post-16350524)
 * In the free version, there’s no whitelist, but can can still use [the .htninja script](https://blog.nintechnet.com/ninjafirewall-wp-edition-the-htninja-configuration-file/)
   for that purpose:
 *     ```wp-block-code
       <?php
       if ( strpos( $_SERVER['REQUEST_URI'], '/wp-json/caos/v1/proxy/stealth' ) === 0 ) {
          return 'ALLOW';
       }
       ```
   
 *  Thread Starter [Ocio132](https://wordpress.org/support/users/ocio132/)
 * (@ocio132)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/exclude-plugin-12/#post-16352511)
 * for litespeed how should i do it????
 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/exclude-plugin-12/#post-16354818)
 * Add the code to [the .htninja script](https://blog.nintechnet.com/ninjafirewall-wp-edition-the-htninja-configuration-file/),
   it works on Litespeed, Apache and Nginx.
 *  Thread Starter [Ocio132](https://wordpress.org/support/users/ocio132/)
 * (@ocio132)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/exclude-plugin-12/#post-16358997)
 * One thing if I put the cloudflare thing it won’t let me access the backend
 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/exclude-plugin-12/#post-16361637)
 * Do you see any error message?
 *  Thread Starter [Ocio132](https://wordpress.org/support/users/ocio132/)
 * (@ocio132)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/exclude-plugin-12/#post-16362236)
 * if i put this it gives me error 500
 *     ```wp-block-code
       <?php
       /*
        +===========================================================================================+
        | NinjaFirewall optional configuration file                                                 |
        |                                                                                           |
        | See: https://blog.nintechnet.com/ninjafirewall-wp-edition-the-htninja-configuration-file/ |
        +===========================================================================================+
       */
   
       // Users of Cloudflare CDN:
       if (! empty($_SERVER["HTTP_CF_CONNECTING_IP"]) &&
        filter_var($_SERVER["HTTP_CF_CONNECTING_IP"],FILTER_VALIDATE_IP)) {
          $_SERVER["REMOTE_ADDR"] = $_SERVER["HTTP_CF_CONNECTING_IP"];
       }
       ```
   
 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/exclude-plugin-12/#post-16365325)
 *     ```wp-block-code
       <?php
   
       // Users of Cloudflare CDN:
       if (! empty($_SERVER["HTTP_CF_CONNECTING_IP"]) &&
        filter_var($_SERVER["HTTP_CF_CONNECTING_IP"],FILTER_VALIDATE_IP)) {
          $_SERVER["REMOTE_ADDR"] = $_SERVER["HTTP_CF_CONNECTING_IP"];
       }
       // Whitelist '/wp-json/caos/v1/proxy/stealth':
       if ( strpos( $_SERVER['REQUEST_URI'], '/wp-json/caos/v1/proxy/stealth' ) === 0 ) {
          return 'ALLOW';
       }
       ```
   
 * This is the full code to add to your .htninja file.

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

The topic ‘exclude plugin’ is closed to new replies.

 * ![](https://ps.w.org/ninjafirewall/assets/icon-256x256.png?rev=976137)
 * [NinjaFirewall (WP Edition) - Advanced Security Plugin and Firewall](https://wordpress.org/plugins/ninjafirewall/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ninjafirewall/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ninjafirewall/)
 * [Active Topics](https://wordpress.org/support/plugin/ninjafirewall/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ninjafirewall/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ninjafirewall/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/exclude-plugin-12/#post-16365325)
 * Status: resolved