Blocking Country and Continent with nginx GeoIP on Ubuntu 18.04

Globalization has made cyberattacks much easier 🙁 unfortunately. As a result, you may not want certain countries to visit your site if you mainly get malicious traffic from specific countries that overload your server and slow it down. In this tutorial we will be configuring nginx to use the latest GeoIP database and blocking a … Learn more…

Autodelete Unused Inactive WordPress Themes with WP-CLI

WordPress by default comes with a theme installed so you can get started. The default WordPress theme name generally is named after the year so like this year it is twentynineteen. The default theme is also very important for troubleshooting purposes to make sure that any conflict you may be experiencing on your site with … Learn more…

How to Batch Zip Backup + Install WordPress Plugins with WP-CLI

During WordPress performance troubleshooting or malware investigation, you will often want to disable all of the plugins at some stage of your process. You may also want to back up all of the WordPress plugins as separate zip files for safekeeping just in case you lose track during the troubleshooting process. Re-installing all of the … Learn more…

How to Export Large WordPress Databases and Speed Up the Process

Anybody who has had to export large WordPress databases will tell you it can often be an arduous task. If the database server crashes while exporting, you have to start over. If phpMyAdmin times out because the PHP handler has a low time out, you have to start over. If you are using the command … Learn more…

Improving nginx Proxy + Fastcgi Page Caching Skip Cache Reasons

Many nginx users nowadays are enjoying the benefits of server side caching with a reverse proxy cache or fastcgi cache (this is what Kinsta use). I have the pleasure of working with a lot of these server configurations and sometimes you get some undesired caching behavior that you need to debug in the nginx virtual … Learn more…