How to block IP address in WordPress manually

May 27, 2024 / WordPress

In this article, we will explain how to block IP addresses in WordPress manually.

Let us follow the steps-

  1. Log in to your WordPress dashboard.
  2. Select the “Settings” section from the left-hand side.
  3. Select the “Discussion” sub-option.
    Discussion
  4. You will enter the “Discussion Settings” page, scroll down, and locate the “Disallowed Comment Keys” option.
    Disallowed Comment Keys
  5. You need to copy and paste the IP addresses you want to block, and then click the “Save Changes” button.
    save

Note – WordPress will now prevent users with these IP addresses from leaving comments on your website. They can still visit your site, but they will encounter an error message when attempting to submit a comment.

By following these steps, you can manually block IP addresses in WordPress to prevent unwanted visitors from accessing your site.

For additional security, you can perform IP blocking at the server level. Using cPanel, you can block IP addresses or even entire domain names to protect your website more comprehensively. This is an effective way to increase security by blocking IP addresses or domain names that pose a threat. you can protect your website from hacking attempts, DDoS attacks and other malicious activities.

Hope you grasped everything well. If you still find any difficulty, contact our support staff at your earliest.

Dominos Search