Welcome to HowToShipIt — practical how-to guides for developers: code, AI tools, and servers, explained step by step.

Fail2ban for WordPress: Stop Brute-Force Logins at the Server (2026)

Fail2ban WordPress setup blocking brute-force login attempts at the server firewall

If you run a self-hosted WordPress site, a fail2ban WordPress setup is the cheapest security upgrade you will ever install. Every public WordPress site gets a steady stream of password-guessing requests against wp-login.php and xmlrpc.php — and every one of those requests is an uncached PHP request that occupies a PHP-FPM worker, fills your logs, … Read more

How to Set Up UFW on Ubuntu: A Lockout-Proof Firewall Guide (2026)

UFW stands for Uncomplicated Firewall, and it lives up to the name — until the moment you lock yourself out of your own server. This guide shows you how to set up UFW on Ubuntu without that happening: the exact order of commands, the rules a real web server actually needs, and the five gotchas … Read more

How to Set Up Fail2ban on Ubuntu: SSH, Nginx, and WordPress Protection (2026)

Learning how to set up Fail2ban is the fastest way to stop the background noise every public VPS attracts. Within minutes of opening SSH to the internet, bots start trying common usernames and passwords, and if you run a website, the same bots hammer your login pages too. Fail2ban watches your logs, counts repeated failures, … Read more