Is there a reverse proxy solution out there that can limit on total bytes downloaded? Something like "allow 100 GB per day per API-key" (per IP address would also be fine). I am open to other solutions, just need a way to enforce a download quota.
I have tried looking to see if it's possible in nginx but have not found a way to do it. As per https://docs.nginx.com/nginx/admin-guide/security-controls/controlling-access-proxied-http/ it seems you can only limit on request count, connection count, and bandwidth.