Redirecting a whole domain with Cloudflare
I had to run this site on for 24 hours due to a domain registration mistake I made. Once I got working again I wanted to permanently redirect the URLs on the temporary site to their equivalent on the…
8 posts tagged “cloudflare”.
I had to run this site on for 24 hours due to a domain registration mistake I made. Once I got working again I wanted to permanently redirect the URLs on the temporary site to their equivalent on the…
Tailing the Heroku logs showed that it was getting a barrage of traffic to the page, which implements faceted search and hence has an almost unlimited set of possible combinations - and suchlike.
I got an unexpected traffic spike to https://russian-ira-facebook-ads.datasettes.com/ - which runs on Cloud Run - and decided to use to block crawlers.
I serve static assets for my blog (mainly images) from , which is an AWS S3 bucket served via Cloudflare.
To my surprise, if you setup a Cloudflare caching proxy in front of a website it won't cache HTML pages by default, even if they are served with headers.
I wanted to ensure would redirect to - including any path - using Cloudflare. I've solved this with page rules in the past, but this time I tried using a "redirect rule" instead.
My tools.simonwillison.net site is a growing collection of small HTML and JavaScript applications hosted as static files on GitHub Pages.
I wanted to redirect https://global-power-plants.datasettes.com/ to https://datasette.io/ - I decided to spin up a Cloudflare Pages site to do the work.