Skip to content

bloke.org

Jack of all trades. Master of <?php none(); ?>

22 July 2026 · Security

How I secure sites with BunnyCDN

You can use BunnyCDN’s edge rules for all sorts of nice security tweaks to your site. Super harsh GB only rulesI use this rule for customer business applications that aren’t intended to be publicly accessible Lock down a UK based WooCommerce site that only sells to UK customersVery useful to block most malicious traffic from…

Read on →

22 July 2026 · Linux

How I setup Restic to backup servers -> Blackblaze

Install restic first before proceeding with any configuration or backup setup. I am including fuse as it seems to be required for BackBlaze integration to work correctly — without it, you may encounter errors or missing functionality when attempting to mount or interact with your BackBlaze storage backend. Make sure both packages are installed and…

Read on →

22 July 2026 · cPanel/WHM

Using Laravel Queues on Shared Hosting

When all you have is CRON! Sometimes, shared hosting must be used that does not permit the installation of supervisor to run the queue worker. A common example of this are servers deployed with cPanel access only. One approach for non-time sensitive queue work (such as sending emails) is to add a task to the…

Read on →

22 July 2026 · cPanel/WHM

Super simple script to fix cPanel permissions

A script designed to automatically fix and correct permissions and ownership settings on files and directories belonging to cPanel accounts. This utility ensures that all files and folders are assigned the proper permission values and ownership attributes, helping to resolve common issues that can arise from incorrect configurations, manual edits, or software installations that may…

Read on →

22 July 2026 · WordPress

WP Rocket for WP-CLI

How to Install WP Rocket for WP-CLI: A short Step-by-Step Guide to Getting Started with the Plugin via the Command Line Interface.

Read on →

22 July 2026 · Linux

Raspberry Pi Zero W Slow SSH

Basically, open-ssh tries to use the Quality of Service figure for the connection to optimize its performance… and the default assumes a reliability that the Pi Zero W, with its weak WiFi hardware, can’t reliably achieve. That causes long timeouts and loss of connection. Setting IPQoS to “we know it’s a bad connection” makes the…

Read on →

13 July 2026 · cPanel/WHM

Hardening cPanel with a Custom “Pre Main Virtual Host Include”

Every WordPress and PHP site tends to leak a predictable set of files: .git folders, .env files, backup copies, lockfiles, log files. None of it should be reachable from the browser, but by default, plenty of it is. cPanel lets you fix this globally with a pre main virtual host include — a config snippet…

Read on →

13 July 2026 · cPanel/WHM

Automatically updating Cloudflare IPs in WHM/cPanel

If your WHM/cPanel server sits behind Cloudflare, Apache needs to know which IPs are actually Cloudflare’s proxies so it can trust the CF-Connecting-IP header and log real visitor IPs instead of Cloudflare’s. The problem: Cloudflare’s IP ranges change occasionally. Here’s a small script that keeps things current automatically. How it works Automating Cloudflare IP Range…

Read on →

13 July 2026 · Linux

Installing AirPlay on a Raspberry Pi + Pi Amp

A step-by-step guide to setting up a Raspberry Pi with an IQaudio DigiAMP+ hat as a wireless AirPlay speaker, without relying on pre-built images like Volumio. Covers enabling the device tree overlay, confirming the amp is detected via ALSA, installing and configuring Shairport Sync, and starting the service so the Pi appears as an AirPlay receiver.

Read on →