Protecting WordPress with Cloudflare

As it runs so many sites on the Internet, WordPress is an obvious target for attacks. Protecting a couple of important endpoints is a worthwhile exercise and this can be done with a free Cloudflare account. Whilst there are already numerous guides to do this, many leave you looking for the right place in the Cloudflare dashboard as menus and...

READ MORE Protecting WordPress with Cloudflare

Caddy – Use Environment Variables for Dynamic Processing

I wanted to use an OS environment variable to decide if a directive in a Caddyfile site block should be processed or not. This allows for some sort of URL processing or feature to be enabled / disabled without having to recode your Caddyfile. Change the environment variable from true to false and the feature can be quickly disabled (or...

READ MORE Caddy – Use Environment Variables for Dynamic Processing

GPXPosterPrint – Sports Activity Poster Printing

Lots of people will be using smart watches, bike computers and mobile app’s to record sports activities, before sharing them on platforms like Strava. After a completing a challenging event or race, a poster is a good way to remind yourself (and others!) of your achievements. The common file format for the recordings of the activity is GPX and this...

READ MORE GPXPosterPrint – Sports Activity Poster Printing

Podman – Quadlets – The Basics

Having been playing with Docker recently and ended up down the root/rootless container rabbit hole, I then stumbled across Podman. Quadlets Whilst rootless Podman can work with your existing docker-compose.yml file, v4.4 (I believe) and newer allow you to write Quadlet files which are turned into systemd services. You can then stop / start containers using systemctl rather than docker...

READ MORE Podman – Quadlets – The Basics

Caddy – Useful Code Snippets

Block file access with a custom 404 page Examples on how to block access to files in certain folder or with a certain extension. These code sections with go inside a site block in your Caddyfile. Then to handle the 404 error with a custom (nice looking) 404 page (which is shared for all 404 errors). Adjust lines 10 and...

READ MORE Caddy – Useful Code Snippets

acme.sh Notes

The acme.sh script / utility is very useful when working with (free) SSL certificates issued by Let’s Encrypt (LE), ZeroSSL and other providers. It’s featured in a number of the guides I’ve written and a quick search will turn up lots of content, but this is to bring my notes together into one place. As ever, replace mylab.domain and server.mylab.domain...

READ MORE acme.sh Notes