Category: WordPress

  • Using fail2ban to mitigate WordPress xmlrpc.php DDoS attacks

    Using fail2ban to mitigate WordPress xmlrpc.php DDoS attacks

    Use fail2ban with WordPress to prevent xlmrpc.php DDoS attacks

  • Facebook selecting wrong thumbnail for WordPress links

    Does Facebook keep selecting the wrong thumbnail for WordPress links for you? The solution is to give Facebook some extra instruction about what image to use for the thumbnail, using open graph. If you use a static frontpage, it’s a simple matter of adding something like: <meta property=”og:image” content=”” /> to the Full meta tags […]

  • increase wordpress Maximum upload file size beyond 8MB.

    There is at least three places you need to set the maximum upload file size in WordPress. First check your php.ini upload_max_filesize = 64M; post_max_size = 64M; Restart Apache after making this change. Then if you are using WordPress multi-site, you need change a setting in the backend. Visit My Sites -> Network Admin -> […]

  • Setting alternate hreflang in WordPress

    UPDATE 2013-05-03: After writing this I found out my approach was incorrect. I have since removed the code as it was not useful. Dan’s team was kind enough to point me to Virgin Australia‘s site. If you inspect the source and search for hreflang, you’ll see how it should be done. /UPDATE After seeing the […]

  • OAuth 2.0 in emacs – Part 1

    I want to write something in emacs to let me edit WordPress posts directly. There is of course the blogger-mode in emacs, but I’ve never managed to make that work. Then I noticed that JetPack in WordPress has a JSON interface. Supposedly it will let me do stuff to my blog via a REST interface. […]

  • Piwik GPL web analytics

    Piwik is an open source (GPLed) web analytics program. It looks very comprehensive. I will endeavour to install it and test it out soon. I’ll report back on it when I do. There is also a WordPress plugin for Piwik.  

  • Apache Virtual Host configuration for a Networked WordPress Installation

    Direct any URL request that Apache receives to the WordPress installation. You need to do it if you are setting up a WordPress Network multi-site installation that has sites with their own unique domain names. e.g.,, etc. /etc/apache2/sites-enabled$ ls -al total 8 drwxr-xr-x 2 root root 4096 Jul 25 13:18 . drwxr-xr-x […]

  • Migrating single site WordPress installations to a multisite network

    I have seen this question about migrating to a networked multisite WordPress install come up more than once so I thought I’d write down my experience. I used to host about 10 individual WordPress installations. Managing them and keeping them all up to date was a pain, and that meant I always had sites that were […]

  • Ordered list with letters in Twenty Twelve

    UPDATE: It turns out I was wrong. type= is deprecated. The correct way to do this is style=”list-style-type:lower-alpha”. I updated my post to reflect that. It appears there is a bug in Twenty Twelve as of this writing where specifying the type of an ordered list is not respected. So you can’t get an OL […]

  • A word on WordPress security

    First of all, I am not an expert on security. So please check this info for yourself, and don’t be shy to suggest improvements either. In order to keep your WordPress site secure, one of the things you can do is slow down a potential brute force attack, so the attacker can try fewer login/password […]