WP Require Auth is a plugin for Wordpress which makes it mandatory to be logged in before viewing any page. It is just a matter of downloading and unpacking the plugin as usual and activating it in the Plugins page in Wordpress. There is currently nothing to configure.

Head on over to the WP Require Auth website to download or file a bug/feature request.

This effectively replaces my little hack for doing this earlier on.