This is a rebuttal to a bad article by Smashing Magazine on how to secure your wordpress site.
Don’t follow anything on that page. It’s not going to help you secure anything, it’ll just give you a false sense of security, which in my opinion is worse
By no means is this canon, nor should you really use this as a checklist.. I just wanted to point out the bad advice in that article.
1. Prevent Unnecessary Info From Being Displayed So, don’t show error messages…
My Issue With It
Useful error messages that are hidden, are not going to make your site secure. They’ll just make things more confusing. Now when you mistype a password, you won’t know what went wrong. This is called “security through obscurity”.. it’s the wrong way to secure anything.
2. Force SSL Usage
My Issue With It
Forcing SSL does not secure your site, it just secures your connection to it. SSL does not equal security, many hacked sites are using SSL to this day.
3. Use .htaccess To Protect The wp-config File
My Issue With It
A little known thing about WordPress, you can have your wp-config.php one directory outside your document root, that’s a better way of ensuring people can’t get that file.. but.. hiding this file is not going to make your site secure.
4. Blacklist Undesired Users And Bots
My Issue With It
Maintaining a list of bad ips and bots in your .htaccess is just asking for trouble.. it can be done, but be aware of performance impact, and the importance of keeping that list up to date.
6. Fight Back Against Content Scrapers
My Response
This is not a “security” thing, it’s more of a don’t let people share your content thing, if you’re that concerned with it.. put a watermark on the images, or put the images behind a members only area of your website.
8. Remove Your WordPress Version Number… Seriously!
My Response
See #1, this is security through obscurity.. this has absolutely no value in “securing” your site.
9. Change The Default “Admin” Username
My Response
This should actually be, “don’t use 123456 as your password”.. WordPress 3 lets you pick your own username, which is fairly easy to guess with a default install of wordpress, but a secure password is not.
10. Prevent Directory Browsing
My Response
This is good advice, with mad medicine. adding a disallow to your .htaccess is not going to prevent a user from typing in the url itself and seeing your directory.
To disable directory browsing, add the following line to your .htaccess
Options -Indexes
Articles like these is one of the reasons why I started ZippyKid, there is a lot of bad information out there, that good people consume and apply, without knowing any better, which ends up giving them more problems than they should have.
If you’re interested in a secure WordPress Host, sign up with us, use the coupon code SECURITAH, and get 25% off your monthly bill for life.
[...] He totally missed the official Hardening WordPress page and generated a lot of comment traffic. All of his tweaks were rebutted by commenter Vid Luther (Mobile Commerce and Technology Evangelist and ZippyKid owner) in a separate How to Secure a WordPress Site. [...]
[...] How To Secure A WordPress Site | The ZippyKid Blog This is a rebuttal to a bad article by Smashing Magazine on how to secure your WordPress site. (tags: wordpress security) [...]