I see an Always Online banner at the top of my page. What is going on?

error-alwaysonline.png

How Always Online Works

Since Cloudflare acts as a proxy, we can cache certain pages of your site. When your site goes down because of your server, we can continue to serve your visitor's page requests as long as the page is in our cache as part of our Always Online functionality (generally 1-3 pages). This ensures a seamless experience for your visitor. We continually check for your site to come back online and once it does, we switch back to the live version.

My server isn't offline. Why am I seeing this page?

If you are seeing the Always Online banner and your server is not offline, then something on your server or hosting provider's network is blocking or rate-limiting Cloudflare's requests. 

Since Cloudflare acts as a reverse proxy, all connections to your server come from a Cloudflare IP. Since the same amount of traffic now comes from a smaller number of IPs, server-side security solutions can mistake the increase in connections from this smaller set of IPs as an attack, when they are legitimate. 

As soon as you can identify what is blocking Cloudflare's requests, the issue will be resolved. Since we don't have access to your server, we need your help to identify the issue. 
 
Here are the four common places to look:
  1. Make sure that you're not blocking Cloudflare IPs in .htaccess, iptables , or your firewall.
  2. Make sure your hosting provider isn't rate limiting or blocking IP requests from the Cloudflare IPs and ask them to whitelist the IP addresses found here: www.cloudflare.com/ips
  3. Make sure that you're operating off of the most recent versions of Bad Behavior or mod_security. You want to ensure that mod_security's core rules aren't blocking Cloudflare requests. 
  4. If you are running custom Apache modules, such as mod_antiloris and mod_reqtimeout, disable and unload the modules. These modules will block any time an IP that connects more than 22 times. Since all connections are now coming from a Cloudflare IP, you will definitely hit the limit causing the error page. As soon as you unload the module, the issue will disappear.

Will Always Online always work?
There are limitations to the Always Online service. The limitations are outlined in detail here.

Still not finding what you need?

The CloudFlare team is here to help. 95% of questions can be answered using the search tool, but if you can’t find what you need, submit a support request.

Powered by Zendesk