I created a new WordPress plugin called GeoBlock that allows you to show or hide content based on the visitor’s country. This plugin is not for people on shared hosting. It is for those of you who have root access to their own VPS or dedicated servers.
First up you have to install mod_geoip or the Nginx equivalent module for that. The instructions here are for configuring the Nginx version on a Debian system.
WP-CLI is a command line WordPress administration tool. You can use it to perform various tasks on your WP installation while logged in via SSH.
By default WordPress adds all sorts of code between the opening and closing head tags of a WordPress theme. Most themes also display notes below a comment form and solicit the commenter’s website address. You may want to get rid of all that so here’s how you do it.