News for hackers. Stuff that matters.
Re:Ask HN: Can we collaborate on a IP Address or Regex black... by jamal-kumar on Tuesday April 06, 2021 @11:22PM (#26720253)
Yeah you're looking at something external to your application like a layer 7 firewall, I don't think nodejs is the tool for the job here. You want to stop this traffic way before it even hits your web service with an external WAF.
Re:Ask HN: Can we collaborate on a IP Address or Regex black... by jamal-kumar on Tuesday April 06, 2021 @11:26PM (#26720273)
Re:Ask HN: Can we collaborate on a IP Address or Regex black... by usernamebias on Tuesday April 06, 2021 @11:25PM (#26720269)
That's beyond my capabilities. I can certainly create a big preliminary .txt file from my dataset, and hopefully the open source community can take it from there.
Re:Ask HN: Can we collaborate on a IP Address or Regex black... by thephyber on Tuesday April 06, 2021 @11:36PM (#26720336)
CloudFlare is not beyond your capabilities.

If you have a domain name (as opposed to just an IP address), you could have finished this project with CloudFlare in the time it took you to post to HN. You are almost certainly going to fall into the free tier.

Disclaimer: I used to work for the founders of CloudFlare.

Note: CloudFlare is not the only SaaS / PaaS in this CDN/WAF space, but it is the easiest to get started with (last I checked).