The following repository is a collection of Cloudflare worker snippets that we've collected over time.
This snippet when used will present a maintenance page to any visitor with an option to bypass the maintenance page based on the connecting IP address.
This snippet will redirect sub-domains on a domain name to specific pages based on a list.