Tag: security

Improving WordPress security with the .htaccess

In this article I’ll share some of the security tweaks I tend to add to the .htaccess to improve security of the WordPress-installation.

Hide the wp-config.php file

Since the wp-config.php file contains our database credentials, we do not want this file to be accessible, PERIOD. So by adding this snippet to our .htaccess file we can prevent access to it:

#hide wp-config file
<files wp-config.php>
order allow,deny
deny from all
</files>

This rule will prevent that the wp-config.php is accessible.

Hide the .htaccess file itself

Preventing abuse by adding rules to our .htaccess is only useful if the .htaccess can’t be compromised itself.

Read more →

Using WordPress as a static site generator

This weekend I spoke at WordCamp Nijmegen in The Netherlands. Below you can find my slides for that presentation.

Using WordPress as a Static Site Generator from Brecht Ryckaert