Title: Prepend an other script
Last modified: July 5, 2019

---

# Prepend an other script

 *  Resolved [dimal](https://wordpress.org/support/users/dimalifragis/)
 * (@dimalifragis)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/prepend-an-other-script/)
 * I’m using this plugin with Full WAF mode under Litespeed web server. All ok.
 * But i want to also continue to use an other php script (CIDRAM) to block IPs.
   I have tried to do so with .htninja but it doesn’t work right. It makes my admin
   dashboard unusable with all kind of errors.
 * Maybe i’m doing some thing wrong ?
 * The .htninja is
 *     ```
       <?php
       // Prepend CIDRAM for domain:
          require ('/home/cidram/loader.php');
       ```
   

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

 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/prepend-an-other-script/#post-11706062)
 * Did you check the PHP error log, that would tell you why you have a problem?
   
   I would not load another external application before the firewall. Instead, add
   it to the `wp-content/nfwlog/ninjafirewall.php` loader, and after the lines loading
   the firewall. That way, your application will be loaded after NinjaFirewall, 
   but before WordPress.
 *  Thread Starter [dimal](https://wordpress.org/support/users/dimalifragis/)
 * (@dimalifragis)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/prepend-an-other-script/#post-11706065)
 * There are no errors recorded.
 * I will try your suggestion and update here.
 * Thanks
 *  Thread Starter [dimal](https://wordpress.org/support/users/dimalifragis/)
 * (@dimalifragis)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/prepend-an-other-script/#post-11706750)
 * Works fine with your suggestion. Thanks
 *  [Maikuolan](https://wordpress.org/support/users/maikuolan/)
 * (@maikuolan)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/prepend-an-other-script/#post-11718175)
 * Hi,
 * Discovered this support discussion via an alert (due to CIDRAM being mentioned).
   Just as a quick FYI: When running several different WAFs in conjunction (e.g.,
   Ninja and CIDRAM together), if you need to load Ninja before CIDRAM, that shouldn’t
   negatively impact CIDRAM in any way at all. AFAIK, NinjaFirewall and CIDRAM should
   be able to play nicely together (i.e., AFAIK, there shouldn’t be any compatibility
   problems between the two, and CIDRAM doesn’t have any particular reason to be
   loaded before NinjaFirewall). But, if anyone encounters any such problems when
   running NinjaFirewall and CIDRAM in conjunction, I’d welcome them to let me know
   about it, so that I can look into it.

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

The topic ‘Prepend an other script’ 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/)

 * 4 replies
 * 3 participants
 * Last reply from: [Maikuolan](https://wordpress.org/support/users/maikuolan/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/prepend-an-other-script/#post-11718175)
 * Status: resolved