WordPress.org

Ready to get started?Download WordPress

Forums

Editing .htaccess for security (3 posts)

  1. ubound
    Member
    Posted 2 years ago #

    Hello,

    I remember I saw a video where Matt Cutts of Google gave an advanced tip to keep your WordPress save by editing .htaccess of your WordPress in a way that it cannot be modified from other IP (if I am not mistaken that's how it worked).

    Anyone knows how do that?

    Thanks!

  2. bcworkz
    Member
    Posted 2 years ago #

    Exactly how that is done will vary by your specific situation and needs, so I can't give you a specific script, but it is possible to limit access to portions of your site to only specific IPs, by using the mod_rewrite.c module. How it is done exactly needs to be carefully considered, because it can cause usability issues with other users of your site, and may vary depending on what attack vector you are concerned about.

    You might also review Hardening WordPress for more ideas on keeping your site safe. The latest version is actually fairly safe without resorting to fancy .htaccess tricks. Simply using good web hygiene is really the most important security measure.

  3. ubound
    Member
    Posted 2 years ago #

    Bcworkz:

    thanks for comprehensive reply. It sounds like something I am not ready for at the moment. I ran static websites but I don't really know WordPress yet. I will follow your advice, review the documentation and limit myself to just keeping it clean for now. Thanks :)

Topic Closed

This topic has been closed to new replies.

About this Topic