I am hosting a website with cloudflare and nginx.
I want to use nginx rate limit since the cloudflare one isn’t that good.
I need for my site to rate limit reqs count at 10 a week, I have read How do I implement a super long rate limit? but I have a problem for both solution.
For first one I can not use it since my website is using cloudflare, so if I use it it will block cloudflare IPs and not clients, it could be fixed using x forwarded for and fail2ban but I have no idea how to.
For second I am using a linux distrib that isn’t compatible with this nginx mod.
So my question is how to use nginx rate limit on long period with a website using cloudflare proxied feature.
Pald is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.