Title: Feature request: Function or API hook to programmatically add IPs to Block List
Last modified: August 13, 2025

---

# Feature request: Function or API hook to programmatically add IPs to Block List

 *  Resolved [huusoku](https://wordpress.org/support/users/huusoku/)
 * (@huusoku)
 * [8 months, 1 week ago](https://wordpress.org/support/topic/feature-request-function-or-api-hook-to-programmatically-add-ips-to-block-list/)
 * Hello, Extended User here, and THANK YOU very much for this plugin. We really
   like it.
 * I’m working on my own custom security script and would like to be able to use
   a native function such as apply_filters(‘wp_armour_block_ip’, $ip); to enable
   the use of wp_armour_block_ip($ip) or something like this where I can pass IPs
   directly into the WP Armour block list that is shown at /wp-admin/admin.php?page
   =wp-armour&tab=blocked_ips. It would follow to also have a function to remove
   an IP number such as wp_armour_unblock_ip($ip) so we may remove only just one
   IP from the block list.
 * This would help us out a lot, thank you very much for considering adding this
   option!
 * Regards,
   Huusoku

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

 *  Plugin Author [Dnesscarkey](https://wordpress.org/support/users/dnesscarkey/)
 * (@dnesscarkey)
 * [8 months, 1 week ago](https://wordpress.org/support/topic/feature-request-function-or-api-hook-to-programmatically-add-ips-to-block-list/#post-18600400)
 * Hi [@huusoku](https://wordpress.org/support/users/huusoku/),
   Thank you so much
   for the suggestion. Actually, i really like the idea. I will try adding this 
   hook in next release. Thanks
 *  Thread Starter [huusoku](https://wordpress.org/support/users/huusoku/)
 * (@huusoku)
 * [7 months, 3 weeks ago](https://wordpress.org/support/topic/feature-request-function-or-api-hook-to-programmatically-add-ips-to-block-list/#post-18627040)
 * Thank you very much!!
 *  Plugin Support [Dinesh Karki](https://wordpress.org/support/users/dcsupport/)
 * (@dcsupport)
 * [7 months ago](https://wordpress.org/support/topic/feature-request-function-or-api-hook-to-programmatically-add-ips-to-block-list/#post-18647983)
 * We have added option to disable the Jquery in our latest version. Please update
   to it. 
   Thanks
 *  Thread Starter [huusoku](https://wordpress.org/support/users/huusoku/)
 * (@huusoku)
 * [6 months ago](https://wordpress.org/support/topic/feature-request-function-or-api-hook-to-programmatically-add-ips-to-block-list/#post-18693322)
 * Hello, I noticed in the recent release notes that the hook to unblock IP was 
   added. Is there an online doc for this or how do we use it? Ie. What is/are the
   hooks? Alternatively, I could read through your code, but wanted to ask in case
   it’s been covered before. Thanks again!
 *  Plugin Support [Dinesh Karki](https://wordpress.org/support/users/dcsupport/)
 * (@dcsupport)
 * [5 months, 3 weeks ago](https://wordpress.org/support/topic/feature-request-function-or-api-hook-to-programmatically-add-ips-to-block-list/#post-18698649)
 * Hi,
 * You can use like this 
   do_action(‘wpae_block_ip_action’, ‘192.168.1.100’); to
   block IP
 * do_action(‘wpae_unblock_ip_action’, ‘192.168.1.100’); to unblock IP
   Hope this
   helps.

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffeature-request-function-or-api-hook-to-programmatically-add-ips-to-block-list%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/honeypot/assets/icon-128x128.gif?rev=3093155)
 * [WP Armour - Honeypot Anti Spam](https://wordpress.org/plugins/honeypot/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/honeypot/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/honeypot/)
 * [Active Topics](https://wordpress.org/support/plugin/honeypot/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/honeypot/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/honeypot/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Dinesh Karki](https://wordpress.org/support/users/dcsupport/)
 * Last activity: [5 months, 3 weeks ago](https://wordpress.org/support/topic/feature-request-function-or-api-hook-to-programmatically-add-ips-to-block-list/#post-18698649)
 * Status: resolved