Skip to content
If the site is offline,switch to a backup IP using the cloudflare API
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


A bash script that checks if the website is online. If it isn't, switch to the failover IP using Cloudflare's API

  • Make sure you edit the variables in the beginning of the script.
  • You'll need tmux/screen/nohup so this will run even though you've logged out of your machine.
  • A file called results.txt & cf.log will be written, so make sure your working directory doesn't have a file with that name. Alternatively, you can edit to code to do whatever fits you best.
You can’t perform that action at this time.