Skip to content

If the site is offline,switch to a backup IP using the cloudflare API

Notifications You must be signed in to change notification settings

blackdotsh/cloudflare-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

cloudflare-backup

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.

About

If the site is offline,switch to a backup IP using the cloudflare API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages