Forum Moderators: open
A free solution is to host a IP geolocation database on your server (Maxmind offer a free version) and with some server-side code you can block countries by their two-letter contry code.
Your other option it to whitelist what is allowed, rejecting anything that does not match.
If you block specific IP ranges of the worst offenders, you will drastically cut down your traffic to a dull roar instead of a tsunami wave. There are some well known and persistent actors, so if you knock them out traffic will certainly go down. Go through your raw access log and target those that are trying to break into your site, or are looking for vulnerabilities. They are very easy to spot. If you have time, then go after bots that simply waste bandwidth with daily requests for everything.
I also recommend installing 2FA two factor authentication on your WP site, as well as do a scan for vulnerabilities. One of the main issues are bots trying to break into your security using brute force. This can really waste resources. Send them 400s with 2FA.
If each site is a subdirectory and not in root, you can use a single htaccess and SetEnvIf to protect them, using inheritance.
If the 400 parked domains are only redirecting traffic to the one you wish to protect, you only need to pay the DNS fees for that one domain. The others are dropped at its door, right?
More specifically, if these are parked (not viable domains) then the only thing you want is bots from g and bing. That should be four (4) allowed bots (2 each) and pretty simple ips allowed. If these are for sale, then take other steps to include allowed resources.
That is still a pretty large amount of info to process with every request, no? (all of Canada and the US)Who do you want to access these pages?
You could install a Wordpress security plugin (WP Cerber Security, i.e.) and get many ideas while checking the reports.
Who do you want to access these pages?
Whitelisting is far easier than blacklisting by a long shot.
I assumed the domains are "viable" since they are parked. They do not have any CONTENT, correct? If that is the case Tom, Dick and Harry won't be interested.
goes to a WHOIS and then goes to the domain to pursue the matter further
With changes to whois after GDPR ... that might not be so easy.
The last time I compiled a list of Canadian IP ranges, it came out to 87k. And that's including the < /24 slivers--/27 here, /29 there--living on other regions' servers, which you would almost certainly never bother to whitelist.