Lurker News
After down detector went down with the rest of the internet during the Cloudflare outage today I decided to build a robust, independent tool which checks if down detector is down. Enjoy!!

Comments (170) 46 threads

Earlier comments
Retr0id1 reply#
How does it detect up-ness?

Downdetector was indeed down during the cf outage, but I think the index page was still returning 200 (although I didn't check).
Running a headless browser to take a screenshot to check would probably get you blocked by cf...

omoikane#
It just fakes it as far as I can tell.

script.js calls `fetchStatus()`, which calls `generateMockStatus()` to get the statuses, which just makes up random response times:

    // ---- generate deterministic mock data for the current 3-min window ----

    function generateMockStatus() {
      const bucket = getCurrentBucket();
      const rng = createRng(bucket);

      // "Virtual now" = middle of this 3-minute bucket
      const virtualNowMs = bucket * BUCKET_MS + BUCKET_MS / 2;

      // Checked a few minutes ago (2–5 min, plus random seconds)
      const minutesOffset = randomInt(rng, 2, 5);
      const secondsOffset = randomInt(rng, 0, 59);
      const checkedAtMs =
        virtualNowMs - minutesOffset * 60_000 - secondsOffset * 1000;
      const checkedAtDate = new Date(checkedAtMs);

      return {
        checkedAt: checkedAtDate.toISOString(),
        target: "https://downdetector.com/",
        regions: [
          {
            name: "London, UK",
            status: "up",
            httpStatus: 200,
            responseTimeMs: randomInt(rng, 250, 550),
            error: null
          },
          {
            name: "Auckland, NZ",
            status: "up",
            httpStatus: 200,
            responseTimeMs: randomInt(rng, 300, 650),
            error: null
          },
          {
            name: "New York, US",
            status: "up",
            httpStatus: 200,
            responseTimeMs: randomInt(rng, 380, 800),
            error: null
          }
        ]
      };
    }
passivepinetree#
I'm curious if this site actually uses AI in some form or if it's just the hot TLD at the moment. There's no mention of AI on the page itself.
pytlicek#
I have similar project like this: https://hostbeat.info/ More like t uptime robot and sure, I was really surprised yesterday how many alerts I have got and how many notifications were sent yesterday for this system users. Good work anyway
ricq2 replies#
Is it hosted on Cloudflare?
mcny1 reply#
I feel like the classic East Dakota reply would be that cloud flare CDN does not host your data and merely proxies it (bonus points if he uses the words "mere conduit" in his reply and therefore cloud flare can't be held responsible yada yada).

Jokes aside, as far as I can tell, https://downdetectorsdowndetector.com/ is NOT using Cloudflare CDN/Proxy
https://downdetectorsdowndetector.com/ is NOT using Cloudflare SSL
However, selesti reports it uses cloudflare DNS?
https://checkforcloudflare.selesti.com/?q=https://downdetect...
https://downdetectorsdowndetector.com/ is using Cloudflare DNS!
Checked 8 global locations, found DNS entries for Cloudflare in 3
Found in: England, Russia, USA
Not found in: China, Denmark, Germany, Spain, Netherlands

xp84#
That won’t be an issue though - as we all know, DNS is rarely related to cloud failures
PunchyHamster#
of course, adding to the joke

Load more comments