Latest posts and projects

—

Choose a better browser

Your browser is the app you probably use more than any other, and it sees everything you do online. It's worth picking one that respects your privacy and works the way you do. Almost every browser is now built on one of three engines: Chromium (Google's open-source project behind Chrome, Edge, Vivaldi, Brave and Opera), Gecko (Mozilla's engine behind Firefox…

—

Upgrading an inherited WordPress site: years of outdated tech, without breaking it

Every developer eventually inherits a WordPress site that nobody has looked after properly for years. I recently took one over: an old theme, years-old page builders, more security plugins than anyone needed and a core version several major releases behind. Here's how I brought it up to date and closed the security gaps without the site going down. I didn't…

—

From report-only to enforced: rolling out a Content Security Policy

In September I wrote a guide to implementing a Content Security Policy. This post is the practical follow-up: a step-by-step rollout, from the first audit to an enforced policy, that works whether your site is a static build, a WordPress site or a Magento store. I recently went through this process on this website, and I'll use it as a…

—

Critical PHP vulnerabilities: A guide to PHP2Shell

Two critical remote code execution vulnerabilities in PHP, collectively called PHP2Shell, have exposed an estimated 22.6 million web servers worldwide to potential compromise. This guide explains what clients need to do now, how hosting choices matter for security responsiveness, and what to prioritise for long-term resilience. What happened On 21 October 2026, the PHP Foundation released emergency security updates addressing…

—

Building a web app with TypeScript: a complete guide

This is a practical, step-by-step guide to building a small web app with TypeScript, without a framework or a bundler. By the end you'll have a working reading list app that saves its data, imports and exports files and has its own tests, and you'll have used the parts of TypeScript that matter most in everyday web development. If you're…

—

Content security policy implementation from generator to production

Why content security policy matters more than you think Content Security Policy (CSP) is one of those security headers that sounds straightforward until you try implementing it on a live site. Suddenly your scripts stop loading, your images fail to render and your CSS appears broken. But getting it right prevents XSS attacks, stops malicious code injection and significantly reduces…

—

Tech support: fixing a compromised WordPress site

Most WordPress compromises stay hidden for weeks. No defaced homepage, no ransom note. More on how to spot a compromised WordPress site Technical support for suspected WordPress hacks Any malicious infection leaves traces. Here's how to find them systematically using the command line. Core file integrity checks Start by verifying your WordPress core hasn't been tampered with. Download a fresh…

—

How to spot a compromised WordPress site before it's too late

Most WordPress compromises stay hidden for weeks. No defaced homepage, no ransom note. Technical support and fixing a compromised WordPress site Often there's no dramatic defacement, no ransom note, no angry emails from customers. Instead, the compromise sits quietly in the background, harvesting credit card details, sending spam or quietly redirecting your visitors somewhere you really don't want them to…

—

Modern WordPress security: why management beats manual hardening

Discover why the latest WordPress updates and tools like Wordfence make active management more effective than old-school hardening techniques. A few years ago, I wrote about Hardening WordPress against hacking. Back then, the conversation was dominated by manual.htaccess tweaks, disabling XML-RPC and scrambling file permissions. While those steps still have their place, the threat landscape and the WordPress core itself…

—

TypeScript for PHP developers

If you write modern PHP, with type declarations on everything and PHPStan or Psalm in your pipeline, you already think the way TypeScript wants you to. This is a quick guide for experienced PHP developers, covering what carries over, what's genuinely different and how to use TypeScript alongside PHP rather than instead of it. If you're new to TypeScript altogether,…

—

Enhancing WordPress search: the best plugins and tools for 2026

Visitors come expecting to find what they need quickly; when search fails, bounce rates climb and conversions slip. The default WordPress search leaves much to be desired, which means you need better tools if you want to deliver a professional experience. This guide covers the best WordPress search plugins and tools available in 2026, balancing AI capabilities, ease of setup…

—

An introduction to TypeScript

TypeScript is now the most used programming language on GitHub, ahead of both JavaScript and Python. If you build anything for the web, you've almost certainly used something written in it, even if you've never written a line of it yourself. This post explains what TypeScript is, what it does and doesn't do, and whether it's worth adopting, without any…

More posts and projects…