Posted on July 8th, 2009 in WP Tutorial | 20,010 views

Bảo mật cho WordPressSecuring 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.

Download.

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 all

Source - 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.

Download

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 all

Source - 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."

Download

Source: catswhocode.com

Sign up for News and Updates!
digg delicious stumbleupon technorati Google live facebook Sphinn Mixx newsvine reddit yahoomyweb

24 Responses to “10 Easy Ways to Secure your WordPress Blog”

  1. Blog này tiếng anh tiếng việt trộn lẫn à

  2. anh ơi em ko tìm thấy file htaccess thì phải làm sao ạ?

  3. 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

  4. 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

  5. :sad: làm ơn cho tôi biết cách thêm captcha vào phần comment ! thank hieudt :)

  6. 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

  7. 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 :?:

  8. Vậy hieudt đã sửa được chưa, nếu được thì hướng dẫn cho mình với :neutral: 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 :cry:

    Thanks.

  9. Bài viết rất hữu ích. Cảm ơn bạn.

  10. These are some great tips. I will add the blank HTML page to my plugin folder A.S.A.P.

  11. i like your theme!

  12. 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

  13. Bác Hiếu check mail lại nhé :) Mình mới email pác :D Add text link á :D hi hì :lol:

  14. 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ộ.

  15. :mrgreen: nhiều bài viết về tin học quá ... chắc lúc nào rảnh chôm hết về blog tui backup 1 bản

  16. 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" :(

  17. Bài viết rất hữu ích. Cảm ơn bạn.

  18. tìm trong code đi bạn

Leave a Reply

Comment moderation is currently enabled so comments with spammy words or a few links might be delayed. Please do not submit your comments twice, they will be approved soon.
Off Auto TELEX VNI VIQR VIQR*