04
May
2010

Deny Access to wp-login.php by showing forbidden message

Posted in: WordPress Security 1 Comment

security Using a .htacess file in root of your public_html directory, you can deny access to wp-login.php by showing forbidden message. You can only allow specific IP or IPs or IP range to use wp-login.php

Just add below codes in .htaccess file of in root of your public_html folder.

<Files wp-login.php>
Order deny,allow
Deny from All
Allow from xx.xx.xx.xx
</Files>

Note: In above code change xx.xx.xx.xx to your IP.
Done!!

Warning

When editing or modifying the .htaccess file of your WordPress blog, make sure to always have a backup that you can restore in case of something went wrong.

browse premium wordpress themes

About the Author

Name: Ravi Shekhar
I love blogging and designing WordPress and Drupal themes.

One Response to Deny Access to wp-login.php by showing forbidden message

  1. laiptai says:

    Great themes! Gonna test some of them on my wp site.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

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>