Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Not in nginx, but you could probably use fail2ban: http://fail2ban.org/wiki/index.php/...
-
@Taqriaqsuk I use it for ports, but this one is for nginx I need it to block attempts from client if it failed to authenticate
-
kurtr127556yAlso just change your default port to something other than 22. My personal favourite is 666. Decreases bot attempts by 99%, not many do port scans
-
kurtr127556yOh and fail2ban works for http auth as far as I remember support for nginx is baked into the default conf you might just have to uncomment a line it's config
-
Condor324966yI'd say fail2ban, but haven't had much luck with that. Since I'm the only user on my servers, I hid most services within a VPN. No idea how I'll deal with public-facing services though.. fortunately it's currently only Postfix and OpenVPN.
@Linux @linuxxx @netikras and finally, 📍 -
Linux438106y@notcool
modsec does only cut http requests, would make more sense to ban the IP all toghether
Related Rants
-
linuxxx32*client calls in* Me: good morning, how can I help you? Client: my ip is blocked, could you unblock it for m...
-
IAmNotARobot67What. The. Fuck. Did. Just. Happen. A random girl followed me on social media. She looked nice and intelligen...
-
BrainDrain7Amazon Drive offers the most comprehensive data redundancy known to mankind. "Your data synced. A LOT."™
The amount of attempts to access my website is just too much O_O
Anyway in nginx to block access if login attempt failed after 3 times?
random
dafuq
o_o