Best way to disable crowdsec for specific domain?

I have Crowdsec setup with Caddy and I am considering being able to enable/disable it for particular hosts (similar to how you can disable WAF in Cloudflare). I have stumbled upon this: Allowlisting and Rule Overrides | CrowdSec but I suppose this would require to restart crowdsec (agent?)

Another option would be to split Caddy config into multiple sections and dynamically reload it with or without crowdsec, but I haven’t explored that further yet.

I was wondering, maybe you could share best practice of sort on how to achieve this?

Thanks for the great software, cheers!

CrowdSec itself is IP-based, not domain-aware, so the clean place to make this per-host is Caddy. If you’re using the Caddy CrowdSec bouncer, treat it as middleware: apply it only inside the site blocks/routes you want protected, or guard it with a host matcher. Hosts that don’t hit that middleware won’t consult CrowdSec. That avoids trying to disable the agent per domain, and normal Caddy config reload should be enough—no CrowdSec restart needed for this.