Watch a site behind Cloudflare¶
Cloudflare stands between your visitors and your server. That changes what our checks see: Cloudflare may answer for your server, or stop our checks before they reach it. This guide sets a monitor up so it tells you about your site, not about Cloudflare's security settings.
What our requests look like¶
Each check is one plain request from one of our checking servers:
- from the addresses on allow our checks, IPv4 or IPv6;
- with the method
GET(orHEAD, if you chose it under More settings); - with the user agent
Mozilla/5.0 (compatible; UptimeGorilla/0.1; +https://uptimegorilla.com); - with no cookies, and without running the page's scripts.
So a challenge page, such as Cloudflare's "Just a moment...", stops our check: it needs a browser that runs scripts. The monitor then shows Our check was blocked by a firewall and needs attention, and nobody can tell whether the website is up. More about what we send: security and privacy.
Steps¶
- Add a monitor with the website's address, as visitors type it.
- In Cloudflare, allow our checks by our checking servers' addresses, not by our user agent, which anyone can copy (the Cloudflare steps).
- On the monitor's Settings, type the Server the site runs on, such as
web-03. Behind Cloudflare we cannot see it, and it lets one email cover every monitor of that server (server). - Open the monitor's page and wait for the next result: it should be Up.
What the results mean behind Cloudflare¶
| Result | What it means | What to do |
|---|---|---|
| Our check was blocked by a firewall | Cloudflare's security stopped our check | Allow our checks, as in step 2 |
| Too many requests (429) | A rate limit counted our checks | Leave our addresses out of the rate limit |
| Cloudflare cannot reach the server | Cloudflare is up, but your server behind it does not answer, or its certificate is refused | Check the server, or ask your host. Counted as down once a second place agrees |
| Up | Visitors get the page | Nothing |
The SSL certificate¶
We read the certificate Cloudflare shows your visitors, not the one on your server. Cloudflare usually renews its own certificates by itself. A problem with your server's own certificate shows as Cloudflare cannot reach the server (an SSL warning but my certificate is fine).
Cached pages¶
If Cloudflare caches your HTML pages, a cached page can still load while your server is down. Watch a page that your cache rules leave out, so the check reaches your server.