How to Block an IP Address with the IP Deny Tool

Updated on July 19, 2018
9
Shares

Dealing with a bot, spammer, or hacker constantly hitting your site? Depending on the severity it could have a big impact on your visits and bandwidth, in which case you might want to try blocking them. Previously you had to reach out to our support team to block IPs, but you now have the ability to do this in the MyKinsta dashboard.

Follow the steps below on how to use the IP Deny tool.

Troubleshooting IPs

Curious who’s visiting your site the most? There are a few places in the MyKinsta Analytics tool that can help you. The first is the “Top Countries” and “Top Regions” under the Geo Analysis section.

We’re going to use an example from a client’s site that was having issues. They are based in the US, but suddenly noticed a surge in bandwidth and visits from Italy. Within a seven day period, they got over 1.3 million requests from the “Province of Arezzo.” So already this looked a little suspicious.

Suspicious traffic

Suspicious traffic

Looking at the top 10 client IPs we could see that there were massive amounts of requests from a few IPs.

Top client IPs

Top client IPs

A few searches in Google of the IPs and we can see that many of these are probably proxy IP addresses from Italy. So most likely they are bots or spammers in which case you can block the IP addresses. You can then monitor your visits and bandwidth over the next few days to see if it resolves your problem.

Proxy IP addresses

Proxy IP addresses

How to Block an IP Address

Important: The IP Deny tool is a powerful feature and if used incorrectly could block a legitimate service or individual. If you have questions about a certain IP address, please reach out to our support team.

Step 1

Login to MyKinsta and drill down to your individual site.

Step 2

On the left-hand side click on the “IP Deny” tool. You can add IP addresses here that you want to block (deny) from accessing your site. You can also see a current list of IPs that have already been blocked.

IP deny

IP deny

Step 3

Click on “Add IP Addresses.”

Add IP addresses

Add IP addresses

Step 4

Insert the IPs one per line and click on “Add.”

Deny IP addresses

Deny IP addresses

You can then delete an IP address from the IP Deny tool at any time by simply clicking on “Delete” next to it.

Remove blocked IP address

Remove blocked IP address

When IP Blocking Isn’t Enough

If you think you’re undergoing an attack, this could be a never-ending process of blacklisting IPs, which in some cases doesn’t solve the problem fast enough. Here are some additional things you can try.

  1. Kinsta does support geo-blocking in which you can block traffic from an entire country. You will need to reach out to our support team for this. Check out more details on location-based traffic denial.
  2. A lot of DDoS attacks when blocked in one area, will simply pop up in another, or change IPs and proxy addresses. So in this instance, it makes sense to take advantage of a DDoS solution which could help automate the process with their already built-in rules compiled from years worth of data. We recommend Cloudflare or Sucuri.
Was this article helpful?
No, or there was something off

Hand-picked related articles

Use WordPress?

Use WordPress?

Join 20,000+ others who get our FREE weekly newsletter with WordPress tips on how to drive more traffic and revenue to your business!

Consent

You have Successfully Subscribed!

Send this to a friend