Support » Fixing WordPress » Editing .htaccess for security

  • 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?


Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz


    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.


    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 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Editing .htaccess for security’ is closed to new replies.