Skip to main content

category: How To...

Handle high traffic by sanitising social media traffic in nginx

Absorb large social media marketing traffic like you never did before, with this sneaky nginx rewrite to help out your cache.

403Page is now open source!

Today we did something cool! We published the Frontity theme used for 403page.com (what you’re looking at right now). Come get it…

HOW TO: Block non-Cloudflare requests to your site with a Worker

What’s stopping an attacker from learning your server IP, bypassing Cloudflare and hitting your site directly? Try this…

HOW TO: Serve Frontity inside WordPress on any environment (no node.js)

A method to load a Frontity site as a theme inside Wordpress with any hosting environment – including those that don’t yet support Node.js!

HOW TO: Handle query strings for WordPress in nginx (like a crazy person would)

You need a wacky method for nginx to uniquely handle incoming requests that contain a specific query string using error page handling.

HOW TO: Support .webp on Cloudflare’s edge with a Worker

A method to serve .webp to supported browsers only using Cloudflare workers (and optionally Webp Express).

HOW TO: Use Cloudflare Workers to enable Basic Auth on a subdirectory

Here’s a neat way to protect any subdirectory or URL with Basic Auth using Cloudflare Workers – no .htaccess or htpasswd required!

HOW TO: Use Cloudflare to handle Country-based redirects

Do you have a multilingual or multi-regional website that automatically redirects users based on their country? This is for you.

HOW TO: Use Cloudflare to reverse proxy a subdirectory

You need to serve a complete site through a “subdirectory” (ie. /news or /blog) without being able to move it. Cloudflare to the rescue!

HOW TO: Serve WordPress from a subdirectory (no .htaccess)

This is not a proxy method – we’ll be “physically” serving Wordpress from a subdirectory without relying on .htaccess (FPM-compatible).