←back to thread

597 points classichasclass | 1 comments | | HN request time: 0.238s | source
Show context
phplovesong ◴[] No.45010894[source]
We block China and Russia. DDOS attacks and other hack attempts went down by 95%.

We have no chinese users/customers so in theory this does not effect business at all. Also russia is sanctioned and our russian userbase does not actually live in russia, so blocking russia did not effect users at all.

replies(3): >>45010936 #>>45011063 #>>45012448 #
praptak ◴[] No.45011063[source]
How did you choose where to get the IP addresses to block? I guess I'm mostly asking where this problem (i.e. "get all IPs for country X") is on the scale from "obviously solved" to "hard and you need to play catch up constantly".

I did a quick search and found a few databases but none of them looks like the obvious winner.

replies(4): >>45011134 #>>45011160 #>>45011377 #>>45012750 #
1. bakugo ◴[] No.45011134[source]
Maxmind's GeoIP database is the industry standard, I believe. You can download a free version of it.

If your site is behind cloudflare, blocking/challenging by country is a built-in feature.