WordPress: How To Limit Access To wp-login.php By IP Address

If you have a private blog and you only need you to log into the WordPress admin system, you should ensure that your security is tight. One way of ensuring that no one can even try and log into WordPress is by only allowing your IP address to access the wp-login.php page (your IP address must be static otherwise you will have to do this each time you want to log in).

This can be done very simply be adding the following code to your .htaccess file:

<Files wp-login.php>
        order deny,allow
        Deny from all

        # Allow from this IP address
        allow from xx.xxx.xx.xx

All you need to do is replace the x’s with your own IP address and then you are the only one who can access the login page.

Free Graphics, Icons, Tutorials
Free Graphics Free Christmas Vector Icon Graphics Pack 2017Free Fitness Vector Icons Graphics PackFree Camping Vector Graphics PackFree Summer Graphics PackFree File Icon PackFree Fast Food Vector Graphics
Sharing is caring...
Like & Follow
Share the love, share this page! Facebook Twitter Digg Reddit LinkedIn Pinterest Email
Close [X]
The Web Taylor
1000 Lakeside North Harbour Portsmouth, Hampshire PO6 3EN
02392 123358