Securing your blog is important. With WordPress so popular these days, it’s becoming a bigger and bigger target for hackers. In this post we’ll look at ten easy ways to secure your WordPress blog.
1. WP Security Scan
This very easy to use plugin will sort out some of the basic security issues with WordPress - it'll change your database's name and alert you to flaws in your installation's security, amongst other features.
2. Protect your plugins
Plugins are an easy way for a hacker to get access to your blog if they've got flaws in them. An easy way for hackers to find out which plugins you're using is to go to /wp-content/plugins/, and they'll find all the plugins that you're using. The solution? Put a blank index.html file in the wp-content/plugins/ folder.
3. Update WordPress
This is super-easy to do, but a surprising number of people don't do it: update WordPress. If you're super-security-conscious then don't upgrade to the next big release immediately (ie 2.8), wait for the bug fixes to come in (ie wait for 2.8.1).
4. Pick a good password
Common sense. Use a good password. Don't use the same password that you use on every site, create something that is easily memorable, with a mix of UPPER and lower case and some numbers in there too. Change your password regularly too.
5. Change the admin user name
By default, the WordPress user name is admin. [Lots]% of people don't change it. Why should you change it? If a hacker has your username, he's halfway there to getting into your site, he just has to guess your password. If the hacker has to guess your username as well, then that's twice as much work to do. It's super easy to migrate posts from one user to another, just create your new user and then delete the admin user. You'll be given the option to migrate posts to another user.
6. Protect your WP-Config.php file
Your WP-Config.php contains your database name, database username and database password. It's something to protect.
Just add the following code to your .htaccess file:
# protect wpconfig.php
order allow,deny from allSource - Nometech.com
7. Hide your WordPress version
First off, go into your header.php file and remove the meta data (something like <meta name="generator" etc). Trouble is, WordPress adds in the meta data automatically! How do you remove it? Paste this code into your functions.php file.
<?php remove_action('wp_header', 'wp_generator'); ?>
Source - ProBlogDesign
8. Limit the number of times user can enter their password (wrongly)
The Login LockDown plugin will lock out users if they enter their password wrong too many times. You can choose how many times users can enter their password and also how long they're locked out for via a neat options page.
9. Limit WP-Admin access by IP
This isn't something that I do personally, as I blog on a fair number of different computers, but if you're just on the one, with a fixed IP, then this is a great hack for you: you can restrict access to the wp-admin directory with a spluginimple .htaccess hack:
order deny, allow
allow from a.b.c.d. #your static ip
deny from allSource - Nometech
10. Login via SSL
If your host has an SSL certificate then you can use this great little plugin to login via SSL. The Admin SSL plugin "secures login page, admin area, posts, pages - whatever you want - using Private or Shared SSL."
Source: catswhocode.com












UNITED STATES and using
24 Responses to “10 Easy Ways to Secure your WordPress Blog”
Blog này tiếng anh tiếng việt trộn lẫn à
anh ơi em ko tìm thấy file htaccess thì phải làm sao ạ?
Nếu không có sẵn thì bạn tự tạo cũng được.
anh HieuDT ơi, tình hình là trang web của tôi giờ căng thẳng quá, không hiểu vì sao mà chậm thế, chậm không thể tả, đã vét sạch rác rưởi trên wordpress rồi mà vẫn chậm. Mà dreamhost chẳng lẽ cùi bắp thế, không thể đáp ứng hơn ngàn người truy cập mỗi ngày hay sao? vào panel báo cáo thì thấy đâu ăn thua gì so với gì dreamhost cung cấp.
Mong anh cho lời khuyên. xin cảm ơn rất nhiều
Anh có thể dùng các plugin để tăng tốc cho WordPress, một trong số đó là plugin tạo cache. Loại plugin này chủ yếu tạo cache cho html/css/javascript với database nhằm giảm bớt lượng truy cấp đến hệ thống server cũng như tăng tốc độ đáp ứng ở phía người dùng.
Để tiện tìm kiếm, anh có thể dùng 3 link dưới đây, sẽ có rất nhiều plugin về caching cũng như tối ưu WordPress cho anh lựa chọn đấy:
http://wordpress.org/extend/plugins/tags/caching
http://wordpress.org/extend/plugins/tags/cache
http://wordpress.org/extend/plugins/tags/optimize
cảm ơn anh Hieu rất nhiều, tôi đang dùng supercache, wp-optimize và autoptimazi, mong là tình hình sẽ khả quan hơn.
Một lần nữa, cảm ơn anh đã trả lời comment
Bạn có thể dùng các plugin tạo captcha cho phần comment rồi làm theo hướng dẫn để chèn vào blog, đa số các plugin này rất dễ sử dụng, bạn đừng quá lo lắng nhé.
Bác làm ơn đổi lại đường dẫn domain của em thành: http://www.blogviet.info nhé (có www ở trước nhé). Cám ơn bác nhiều
Sau khi giấu phiên bản wordpress rồi, mà sao vẫn thấy phiên bản Hieudt đang sử dụng là 2.8.3 vậy
Chắc là do trục trặc gì rồi, mấy hôm nay bận quá nên mình quên kiểm tra
Vậy hieudt đã sửa được chưa, nếu được thì hướng dẫn cho mình với
vì mình cũng xóa theo cách bạn nói nhưng vẫn bị hiện ở phần dưới
Thanks.
Bài viết rất hữu ích. Cảm ơn bạn.
These are some great tips. I will add the blank HTML page to my plugin folder A.S.A.P.
i like your theme!
Thank you friend!
Hiếu ơi khi mình nhập dòng này vào .htaccess thì bị lỗi 500:
# protect wpconfig.php
order allow,deny from all
Mình xóa đi mới hết
Nếu cách đó ko được thì bạn dùng mấy cách còn lại xem.
Bác Hiếu check mail lại nhé
Mình mới email pác
Add text link á
hi hì
Xin hỏi một chuyện rất nhỏ, nhưng em tìm khắp không thấy hướng dẫn nên đành đi nhờ anh (có lẽ là đơn giản quá nên không ai hướng dẫn!). Nếu muốn bài viết chỉ hiện tiêu đề và mấy dòng đầu thì phải làm thế nào? Ở phần hiển thị, em đã ấn vào mục tóm tắt nhưng bài viết vẫn hiển thị toàn bộ.
Trang của mình dùng theme Thesis, tìm trong file header.php của theme nhưng không thấy dòng <meta name="generator"
Bài viết rất hữu ích. Cảm ơn bạn.
tìm trong code đi bạn