Can I deny access to (a part of) a website from a dynamic set of IP addresses, which is automatically updated based on a website visitors’s actions within caddy?
What I’m trying to achieve is called Dynamic Denylisting of IP Addresses in nginx, which involves storing the IPs-to-be-denied in a keyval_zone.
Unfortunately, updating a keyval_zone
dynamically in nginx requires the nginx API module, which is not available in the free Community edition of nginx.
I’m wondering if this same functionality can be achieved in the free version of caddy.
Note: For my use-case, firewall-level blocking (eg with fail2ban or wazuh) will not work for me. I need to block access to only a subset of the website, so the logic should probably be inside the webserver itself