Forums

Locking wp-login.php with .htaccess? (1 post)

  1. nemo-maritime
    Member
    Posted 3 years ago #

    I have for a while now been using .htaccess to block access to wp-admin of my site, per recommendations of a few articles. Anyway, when I go to mysite.com/wp-admin, it is blocked to other IPs, except my own, but if I go to wp-long.php I can get in without problem if my IP does not match because it is outside the wp-admin folder. So I went to the root .htaccess and I added the following to it;

    <Files wp-login.php>
    Order Deny,Allow
    Deny from all
    Allow from ##.###.##.### (<== My IP)
    </Files>

    And that took care of the issue with it allowing anyone else access to wp-login.php, but my question is whether this will mess up anything else on my site? Or if there is another way of doing this? I was using login lockdown, and was thinking of using AskApache as well but it only shows compatability till 2.6.

    Main reason I am asking is because I have a static IP, so it changes every time I reset my router, but that is only once in a very while.

Topic Closed

This topic has been closed to new replies.

About this Topic