Nginx rate limit on long period
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.