How to Block IP Address in WordPress Manually

May 10, 2024 / WordPress

Manually blocking IP addresses in WordPress helps prevent unwanted access and spam activity on your website.

Here is a brief overview of how to manually block an IP address in WordPress:

  1. Log in to your WordPress admin dashboard.
  2. Go to the “Settings” menu and select “Discussion.”
    settings
  3. Scroll down to the “Disallowed Comment Keys” section.
    disallowed
  4. Input the IP address you want to block into the text box. Make sure to save your changes.
    save changes
  5. WordPress will now block comments from the specified IP address.

Keep in mind; that while this method effectively blocks individual IP addresses, for broader IP blocking or improved security measures, you might want to explore using plugins or server-side configurations.

This way, you can block IP addresses in WordPress manually. Hope you understood everything well.

For a comprehensive guide on blocking IP addresses using server-side configurations, check out our detailed tutorial: How to Block IP using .htaccess File

Spread the love