Check provider logo

Always Online is disabled

zone_always_online_disabled

Severityhigh
Servicezone
by Prowler

Cloudflare zones are assessed for Always Online configuration by checking if it is disabled to prevent serving stale cached content when the origin server is unavailable, which could expose outdated or sensitive information.

Risk

With Always Online enabled, Cloudflare serves cached pages when the origin is unavailable.

  • Confidentiality: stale cache may expose sensitive information that was subsequently removed
  • Integrity: outdated content may contain incorrect or superseded information
  • Availability: reliance on cached content masks origin failures requiring attention
Run this check with Prowler CLI

prowler cloudflare --checks zone_always_online_disabled

Recommendation

Disable Always Online and implement proper high availability solutions.

  • Use redundant origins or load balancing for genuine high availability
  • Stale cached content may contain outdated security information
  • Origin failures should be detected and addressed, not masked
  • Consider Cloudflare Workers for custom failover logic if needed

Remediation

Terraform
Other
  1. Log in to the Cloudflare dashboard and select your account and domain
  2. Go to Caching > Configuration
  3. Scroll to Always Online
  4. Toggle the setting to Off
  5. Implement proper high availability through redundant origins or load balancing

Source Code

Resource Type

Zone

References