Dev log
Security headers for WordPress, without a plugin
Five HTTP headers that close common holes in a WordPress site. The few lines of PHP I use to send them, and how to check they work.
4 min read
Tag
.htaccess
Dev log
Security headers for WordPress, without a plugin
Five HTTP headers that close common holes in a WordPress site. The few lines of PHP I use to send them, and how to check they work.
4 min read
Dev log
How to increase the PHP memory limit (and WordPress too)
Fix "Allowed memory size exhausted" by raising memory_limit in php.ini, .user.ini or .htaccess, or WP_MEMORY_LIMIT in wp-config.php. Then check which one wins.
4 min read
Dev log
Password-protect a folder with .htaccess and .htpasswd
Put a username and password on any folder with Apache basic auth. Create the .htpasswd file with bcrypt, add four lines to .htaccess, or use the Nginx version.
3 min read
Dev log
Magento & WordPress password hash generator
Make a password hash for WordPress (bcrypt, phpass or MD5) or Magento 1 and 2, and set it in the database when you're locked out. Or use WP-CLI or bin/magento.
4 min read