Besides having secure passwords for my blog user and database connections, what should I do to make sure my WordPress installation is secure on my Linux shared server?
|
I think the best suggestions are well explained in the official "Hardening Wordpress" document: http://codex.wordpress.org/Hardening_WordPress At the end, those are the same suggestions for every application out there:
If you want to improve security with obscurity (not only thought it, but as an addtional measure), this document gives some ideas: |
|||
|
|
|
Ensure you haven't set the file permissions to 'chmod 777' as some guides will have you do. Go through and look at anything your web server account or group can write to, and ensure that they are only areas you expect to be dynamically updated (images, attachments, etc). |
|||
|
|
Only login over an SSL connection. If you go into a coffee shop and login at http://www.yourblog.com/wp-admin/ your password is sent in clear text and is easily visible to anyone sniffing the network in the coffee shop and all routers between you and the server. If you move your blog login page to a secure server and force users to login using SSL at https://www.yourblog.com/wp-admin/ the password will be encrypted as it is sent to the server. You can either add some PHP code to wordpress something like this
or use a .htaccess file to enforce SSL login which would look something like this:
|
|||||||
|
|
Secure your /wp-admin/ directory. Lock down /wp-admin/ so that only certain IP addresses can access that directory. You can use an .htaccess file, which you can place directly at /wp-admin/.htaccess . This is what one could look like:
Josh |
|||||
|
|
Make sure that your WordPress installation is up to date. Keep up on the RSS and check up on the updates no less than weekly. If there's an update, begin the installation process at the earliest possible time for you, obviously without disrupting business, if that's what you are using WP for. |
|||
|
|
|
Use a unique username/password for your database connection. |
|||||
|