Title: programatically block ip
Last modified: November 10, 2024

---

# programatically block ip

 *  Resolved [Shane Taylor](https://wordpress.org/support/users/propertunity/)
 * (@propertunity)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/programatically-block-ip/)
 * reaching out to see if you guys have a method to programatically block an ip?
   looking for a prebuilt function that takes ip as a param….

Viewing 1 replies (of 1 total)

 *  Plugin Support [wfpeter](https://wordpress.org/support/users/wfpeter/)
 * (@wfpeter)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/programatically-block-ip/#post-18128220)
 * Hi [@propertunity](https://wordpress.org/support/users/propertunity/),
 * At the moment, we only allow hooking into `importSettings()` and `whitelistIP()`:
   [https://www.wordfence.com/help/advanced/wordfence-api/](https://www.wordfence.com/help/advanced/wordfence-api/)
 * We’re unable to provide any support for custom code should you write anything
   yourself, but also feel free to briefly highlight your use-case to **feedback
   @ wordfence .com**, as we may consider it for a future product update if we feel
   it’d benefit the wider Wordfence user-base too.
 * Thanks,
   Peter.

Viewing 1 replies (of 1 total)

The topic ‘programatically block ip’ is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [wfpeter](https://wordpress.org/support/users/wfpeter/)
 * Last activity: [1 year, 6 months ago](https://wordpress.org/support/topic/programatically-block-ip/#post-18128220)
 * Status: resolved