Title: Can you blacklist IPs from accessing your API? Need help setting it up!
Hey folks,
Quick question—can you blacklist IPs from accessing your API? I’ve got some sketchy traffic hitting my endpoints, and I’m tired of dealing with it.
I’ve seen a few tutorials, but they’re either too technical or outdated. Anyone got a simple way to block unwanted IPs? Maybe using cloudflare, nginx, or something else?
Also, is there a downside to just straight-up blacklisting? Like, could it break legit traffic accidentally?
Thanks in advance!
(PS: If you’ve got a script or config snippet, even better. I’m lazy lol.)
Hey folks,
Quick question—can you blacklist IPs from accessing your API? I’ve got some sketchy traffic hitting my endpoints, and I’m tired of dealing with it.
I’ve seen a few tutorials, but they’re either too technical or outdated. Anyone got a simple way to block unwanted IPs? Maybe using cloudflare, nginx, or something else?
Also, is there a downside to just straight-up blacklisting? Like, could it break legit traffic accidentally?
Thanks in advance!
(PS: If you’ve got a script or config snippet, even better. I’m lazy lol.)
