> Every connector: https://protuno.com/connectors.md · Site map for AI agents: https://protuno.com/llms.txt

# [Cloudflare](https://protuno.com/connectors/cloudflare)
Reads zones, traffic, firewall and SSL data, and purges cache when you allow.

- Connects with: Cloudflare API token, once for the whole workspace
- Permissions: reads start at `allow`, changes start at `ask`; the user can set each one to `allow`, `ask` or `never`.
- Page: https://protuno.com/connectors/cloudflare · Markdown: https://protuno.com/connectors/cloudflare.md
- Where the user gets the key: [Create a token in Cloudflare](https://dash.cloudflare.com/profile/api-tokens)
- Why: The only connector that can act between a visitor and a compromised site.
- Reads (5, run on their own):
  - List zones: Zones on this account, so the right one can be named in other calls. `cf_list_zones`
  - Read traffic and cache stats: Requests, cache hit ratio and origin errors for a zone over a period. `cf_get_analytics`
  - List firewall events: Recent blocked and challenged requests, with the rule that caught each one. `cf_list_firewall_events`
  - Read the edge certificate: The certificate Cloudflare serves for a zone, and when it expires. `cf_get_certificate`
  - Read zone settings: A zone's settings, including its current security level and SSL mode. `cf_get_zone_settings`
- Changes (2, ask first by default):
  - Purge the cache: Purge cached files for a zone, all of them or a list of URLs. Takes effect at once. `cf_purge_cache` (changes the site: refused while the site is Read only)
  - Change the security level: Set a zone's security level, including Under Attack mode. Under Attack shows every visitor an interstitial, so it protects a compromised site and slows a healthy one. `cf_set_security_level` (changes the site: refused while the site is Read only)

## Rules
- Each capability is set to `allow`, `ask` or `never` by the user, in the Protuno dashboard. Reads start at `allow`; every change starts at `ask`.
- A change that touches the site itself is refused while the site is Read only.
- An AI agent reads with `read_service` and changes with `use_service`; Protuno applies the user's setting for that capability.
- Page: https://protuno.com/connectors/cloudflare
