Maintenance Mode

This is a bit unsettling that developers are even discussing the need for such basic feature. Cloudflare just introduced a feature to buy domains. I just created a new business account and bought a domain and been scrambling around how to put a static page on it! There is no such option. You got to be kidding me. Went through apps to find any such services and seriously there are none.

Majority of users do not have information or knowledge on how to customise CF resources. It is often common-sense practice to put the basic necessities of the websites i.e. maintenance mode on top of the bunch of complex features being offered.

Believe it or not, as much as complex logic features are favoured in tech development, it is the basic features that maintain the top position. Maintenance mode, one click activation, is the highest for any website there ever will be - for generations to come.

2 Likes

Thanks for the discussion! While we don’t currently have a one-click ā€œmaintenance modeā€ toggle that would automatically serve a maintenance page across your entire site, we recognise the need for simple, effective solutions. Right now, there are two ready-made options that you can deploy in just a few clicks:

  1. Maintenance Template in Snippets

Cloudflare provides a built-in maintenance mode template via Snippets, available directly in the Cloudflare dashboard under Rules > Overview > Templates. This allows you to quickly enable a maintenance page with minimal setup.

:pushpin: Dev Docs (includes the same template): Maintenance page Ā· Cloudflare Rules docs

  1. Custom Errors

If your origin is returning 4xx or 5xx errors (such as a 503 for planned maintenance), you can replace it with your own custom maintenance page. Custom Errors lets you upload an error page or provide inline code that will be returned when the origin is unavailable and when the request matches the expression of your custom error rule.

:pushpin: Setup Guide: Create custom error rules Ā· Cloudflare Rules docs

Free Plan Alternatives

Both of these solutions require a Pro plan or higher, but if you’re on the Free plan, you can still copy-paste the Snippets maintenance template into Cloudflare Workers, which has a free tier allowing 100,000 requests per day: Pricing Ā· Cloudflare Workers docs

We’re continuing to evaluate how a more streamlined ā€œmaintenance modeā€ feature might work, but for now, these solutions provide flexibility without disrupting your entire zone’s traffic.

Hope this helps!

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.