Title: Custom Firewall Rules
Last modified: August 31, 2016

---

# Custom Firewall Rules

 *  Resolved [stheoret](https://wordpress.org/support/users/stheoret/)
 * (@stheoret)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/custom-firewall-rules/)
 * Hi !
 * First, i love that plugin! I have installed it and works perfectly… a real peace
   of mind.
 * I alreeady made the .htninja file and it works perfectly.
 * Now i would like to review the rules inside Ninja Firewall and customize some
   to my needs and maybe create new ones.
 * where i could get the information about making those custom rules?
    i.e. how 
   to declare the rules
 * [https://wordpress.org/plugins/ninjafirewall/](https://wordpress.org/plugins/ninjafirewall/)

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

 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/custom-firewall-rules/#post-6914317)
 * Hi,
 * You cannot edit the built-in rules because we change them often.
    You can view
   them if you are comfortable with regex and security in the repo: [https://plugins.trac.wordpress.org/browser/ninjafirewall/trunk/updates/rules.php](https://plugins.trac.wordpress.org/browser/ninjafirewall/trunk/updates/rules.php).
   It is a simple serialized array.
 * Those rules will be deprecated soon, as we will release a big upgrade within 
   the end of this month which will include a much more sophisticated firewall engine
   and a new rule format.
 * If you want to filter some specific requests, the .htninja is your best choice,
   because you can add any code you want and it is quite easy to setup and maintain.
 *  Thread Starter [stheoret](https://wordpress.org/support/users/stheoret/)
 * (@stheoret)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/custom-firewall-rules/#post-6914358)
 * Thanks !!

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

The topic ‘Custom Firewall Rules’ 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/)

## Tags

 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [custom rules](https://wordpress.org/support/topic-tag/custom-rules/)

 * 2 replies
 * 2 participants
 * Last reply from: [stheoret](https://wordpress.org/support/users/stheoret/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/custom-firewall-rules/#post-6914358)
 * Status: resolved