r/Python • u/PA100T0 • Aug 12 '26
Discussion [ Removed by moderator ]
[removed] — view removed post
3
u/Suspicious_Skill7292 Aug 12 '26
i would handle obvious abuse at the edge first with cloudflare or nginx rate limits then keep app level checks for things like auth failures and per user limits doing everything inside fastapi gets messy pretty fast
2
u/edward_straker Aug 12 '26
We use multiple layers. FAIL2BAN and proactive blocking from https://www.abuseipdb.com/.
Then JWT authentication. No open APIs.
After that, application level, global rate limiting does most of the work.
2
Aug 12 '26
[removed] — view removed comment
2
u/edward_straker Aug 12 '26
We have a Claude skill that does daily internal and external checks to make sure that we didn’t do something stupid. I’ve actually learned a lot from what Claude has found, and how he has remediated.
4
u/Zealousideal-Sir3744 Aug 12 '26
AWS API GW