Title: Adding more useful hooks
Last modified: October 10, 2024

---

# Adding more useful hooks

 *  Resolved [kapaweb](https://wordpress.org/support/users/kapaweb/)
 * (@kapaweb)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/adding-more-useful-hooks/)
 * I don’t know if this is the appropriate place for feature requests, but I’ve 
   been working with this plugin recently and noticed that one of the 6G firewall
   rules was causing some urls of a website I maintain to get blocked.
 * Using the advanced options, I was able to remove the query string blocking and
   resolve it that way, however, that disables all checks on the query string rather
   than the specific check on some special characters I needed to remove.
 * Since the particular rules are implemented in php, modifying them isn’t that 
   easy. Especially considering the current implementation, modifications would 
   probably have to be very intrusive. I’m not sure if it’s even possible without
   changing the plugin’s code, which is not preferable.
 * I found no relevant hooks, so if in the future more hooks can be added that allow
   for more fine-tuned control of the plugin’s rules, that would be very useful.
   Some possibilities would be hooks that allow you to filter the patterns used 
   by rules, or hooks that allow you to filter the rules themselves.

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

 *  Plugin Support [hjogiupdraftplus](https://wordpress.org/support/users/hjogiupdraftplus/)
 * (@hjogiupdraftplus)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/adding-more-useful-hooks/#post-18065315)
 * Hi [@kapaweb](https://wordpress.org/support/users/kapaweb/)
 * The 6G firewall and other firewall rules work before the actual WordPress code.
   in wp-config.php the aios-bootstrap.php was added which fires the rule first 
   then if it is not an issue it runs other WordPress code so hooks or filters to
   modify the rules seem not possible.
 * The rules pattern ( query string to match) some how possible to change It should
   be good.
 * You can not change it directly in plugin code as the new version will have files
   updated and your changes will be gone.
 * I will create an internal ticket for this.
 * Regards
 *  Plugin Support [hjogiupdraftplus](https://wordpress.org/support/users/hjogiupdraftplus/)
 * (@hjogiupdraftplus)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/adding-more-useful-hooks/#post-18071359)
 * Hi [@kapaweb](https://wordpress.org/support/users/kapaweb/),
 * 8G firewall rules we are working on will allow the user to be able to add custom
   rules and modify the existing rules ( exclude the pattern).
 * This future will be in the upcoming version of AIOS.
 * Regards

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

The topic ‘Adding more useful hooks’ is closed to new replies.

 * ![](https://ps.w.org/all-in-one-wp-security-and-firewall/assets/icon-256x256.
   png?rev=2798307)
 * [All-In-One Security (AIOS) – Security and Firewall](https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [hjogiupdraftplus](https://wordpress.org/support/users/hjogiupdraftplus/)
 * Last activity: [1 year, 8 months ago](https://wordpress.org/support/topic/adding-more-useful-hooks/#post-18071359)
 * Status: resolved