Forum Moderators: open
I have hundreds / thousands of Iomart Cloud Services Limited IP addresses I am blockingEven big providers like iomart do not have hundreds, let alone thousands, of separate ranges. You’re blocking too narrowly. Blocking exact-to-the-last-digit IP addresses should be reserved for times when you’re temporarily afflicted with a botnet using an infected computer from an otherwise legitimate human ISP range. (At any given time I have a few of these. I check every couple of months and clear the ones no longer active.)
But surely not hundreds or thousands belonging to a single host?
185.17.149.128 - 185.17.149.191
185.17.148.0/22
But surely not hundreds or thousands belonging to a single host?
is there anywhere I can test if my IPs are correctly blocked?Your raw access logs will show the server response. You may still see those IPs listed because you can't block IPs from trying, but the logs will show a 403 response if they have been correctly blocked. Eventually they may stop asking.
The list of CIDRs below was compiled from the Iana IPv4 Address Space Registry report [iana.org]. The list is a compact version of all Allocated non-ARIN /8 blocks (from APNIC, RIPE NCC, AFRINIC, and LACNIC). For example, 58.0.0.0/7 actually merges 58.0.0.0/8 and 59.0.0.0/8 into a single CIDR. The largest block in this list is 80.0.0.0/4 which merges the 80.0.0.0 through 95.255.255.255 address range.
This is 64 IPs?Oh, OK, if that’s how you’re counting to arrive at “hundreds or thousands” then yes, all is well :) I was thinking hundreds of separate "Deny" or "Require" lines, or non-Apache equivalent. Just make sure you’ve got the entire range; it’s rare for major hosts or colos to have ranges as narrow as /22. Look them up and you’re likely to find, at a minimum, four consecutive /22 = a single /20.
Does anyone create an up-to-date blocklist to purchase for a server rather than having to do it by htaccess?This seems like two unrelated questions. If it is your own server, then of course you can set up global access controls. (There's even an htaccess equivalent: I have four sites sharing a userspace in shared hosting, and most access controls are in an htaccess file in this userspace.)