How to block IP addresses with WordFence

Updated on August 26, 2025

Wordfence is a WordPress security plugin that implements firewall features including IP blocking. IP blocking refers to blocking traffic from a specific IP address or network so it cannot reach the website.

Instructions

Follow these instructions to block IP addresses in Wordfence.

  1. From the side menu, select Wordfence > Firewall

    If you do not see Wordfence in your main side menu, then you probably need to install or activate the plugin first.
    Wordfence security plugin menu.

  2. Click the Blocking tab

    Blocking tab – Wordfence

  3. In the Create a blocking rule panel, click IP Address

    Create Wordfence blocking rule.

  4. Enter the IP address

  5. Enter a short description to remind you why you added this block

  6. Click the BLOCK THIS IP ADDRESS button

Reference

  • Blocking – Wordfence – official documentation on blocking IP addresses, user agents, referrer strings, and more.

See also

License

Licensed under CC BY 4.0

You are free to share and adapt this content for any purpose as long as you give appropriate credit in a reasonable manner.

No affiliate links

We do not participate in affiliate marketing, and we are not paid to mention products.

Leave a Reply

Your email address will not be published. Required fields are marked *