# protect wpconfig.php
<files wp-config.php>
order allow,deny
deny from all
</files>

The <files> tag is necessary and this post is placed here as some WordPress comment systems strip them out rendering the code meaningless.

the .htaccess file itself can be similarly protected.

Related posts:
  1. Revised IP Address Block List in htaccess Revising the htaccess IP address block list in light of...
  2. WordPress User Registration Spam I’ve had quite a few search enquiries and hits for...
  3. Site Info: Upgrade of WordPress & plugins WordPress installation upgraded today following some security and bug issues....
  4. How to Quickly Block an IP Address from your Website Use .htaccess!!! *Ebook Admin/Secure Apache I’ve mentioned it before –...
  5. Rapidshare WordPress Comment Spam I got an unusual (for me) comment spam this morning...

Related posts brought to you by Yet Another Related Posts Plugin.

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Powered by Sweet Captcha
Verify your real existence,
Drag the missing part to its place
  • captcha
  • captcha
  • captcha
  • captcha

Attach a file Uploading File types: jpg, png, zip,pdf, Max size: 2Mbytes, Max count: 3
   
Use OpenDNS

© 2007-2012 Strangely Perfect All Rights Reserved