04
May
2010
2010
Deny Access to wp-login.php by showing forbidden message
Posted in: WordPress Security
1 Comment
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.




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