News for hackers. Stuff that matters.
Re:Ask HN: Can we collaborate on a IP Address or Regex black... by usernamebias on Tuesday April 06, 2021 @10:45PM (#26720030)
Maybe we don't filter by ip address, and instead filter requests based on known strings (or regex). That's what i'm currently doing. Ex. If request includes '.env'. Blocked!

I'd love to implement a more aggressive strategy. Rather than a reactive one. I'm currently finding myself going through server logs, and adding new 'keywords' to the 'banned list'.

Re:Ask HN: Can we collaborate on a IP Address or Regex black... by jamal-kumar on Tuesday April 06, 2021 @11:29PM (#26720290)
you could just use modsecurity locally on whatever's between the internet and your web application if you insist something external like cloudflare is out of your control

https://github.com/SpiderLabs/ModSecurity

but bogging this up at application level is not going to work in anyone's favour

Re:Ask HN: Can we collaborate on a IP Address or Regex black... by cratermoon on Tuesday April 06, 2021 @10:51PM (#26720069)
Yeah, you're talking about what software like SolarWinds intrusion detection is supposed to do. How well did that work for them?