BuiltByCactus

Engineering Handbook

Security

The WordPress platform has a bad name when it comes to security, we at BuiltByCactus do not believe this is particularly fair.

Many sites built using WordPress are indeed insecure, however there are a few practices and relatively simple steps that can be taken to dramatically improve the security of the websites we build.

General best practices

Checklist

Essential

Here we have a list of critical steps that should be taken.

Optional

Bibliography

Appendix

The complete .htaccess file

# Prevent access to directories
Option ALL -Indexes

# Prevent access to wp-config.php
<Files wp-config.php>
		order allow,deny
		deny from all
</Files>

#Prevent access to .htaccess file
<Files ~ "^.*\.([Hh][Tt][Aa])">
	order allow,deny
	deny from all
	satisfy all
</Files>