cloudflare

8 posts tagged “cloudflare”.

  1. 2025
  2. 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…

    1 min read
  3. Rate limiting by IP using Cloudflare's rate limiting rules

    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.

    1 min read
  4. 2024
  5. Adding a robots.txt using Cloudflare workers

    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.

    1 min read
  6. Setting cache-control: max-age=31536000 with a Cloudflare Transform Rule

    I serve static assets for my blog (mainly images) from , which is an AWS S3 bucket served via Cloudflare.

    1 min read
  7. How to get Cloudflare to cache HTML

    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.

    1 min read
  8. 2023
  9. Cloudflare redirect rules with dynamic expressions

    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.

    1 min read
  10. GitHub OAuth for a static site using Cloudflare Workers

    My tools.simonwillison.net site is a growing collection of small HTML and JavaScript applications hosted as static files on GitHub Pages.

    6 min read
  11. Redirecting a domain using Cloudflare 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.

    1 min read