How do I get notified on my phone when my website goes down?
Run a small bash check on a schedule and POST to your Lert link when the site isn't 200. Your iPhone buzzes the moment it goes down — in about a second. No account, no API keys, no SDK. Setup takes under 30 seconds.
You don't want to find out your site is down from an angry customer. You want to be the first to know. The simplest self-hosted monitor is a few lines of bash that hit your URL every minute and buzz your phone if it doesn't get a healthy response. Lert is what turns that check into a push — your unique link is the endpoint, so there's no account or key involved.
Set it up in under 30 seconds
- Download the app. Open it once — there's no account to create.
- Copy your link. A private link like
https://lert.dev/p/your-idis on screen; one tap copies it. - Schedule the check. Drop the script in cron (say every minute); it POSTs to Lert only when the site is down.
If your site stops answering, your phone buzzes — even locked in your pocket.
The code
#!/usr/bin/env bash URL="https://your-site.com" CODE=$(curl -s -o /dev/null -w "%{http_code}" --max-time 10 "$URL") if [ "$CODE" != "200" ]; then curl -X POST "https://lert.dev/p/your-id" \ -H "Content-Type: application/json" \ -d "{\"title\":\"Site is DOWN\",\"body\":\"$URL returned $CODE\"}" fi
No headers beyond content type, no auth token, no SDK. Add it to cron with * * * * * /path/check-site.sh to check every minute. It stays silent while everything's healthy and only buzzes on a real problem.
Avoid buzz-every-minute during an outage: have the script write a flag file when it first fails and skip the POST until the site recovers — so you get one alert when it drops and one when it's back, not sixty in a row.
Related things people wire up
- When an API goes down
- When a server restarts
- A notification from a cron job
- Uptime notifications
- Server monitoring notifications
It's free for one channel and 50 notifications a day; Lert Pro is $2.99/month for unlimited. See the docs for the full API.
Send your first one in 30 seconds.
Download Lert, copy your link, POST to it. Your iPhone buzzes.