Forum Replies Created

Viewing 1 replies (of 1 total)
  • Hey @diggy69

    Yes, you can set that kind of configuration in your .htaccess without any affectation, this is a sample code you can start using to play around:

    AuthUserFile /dev/null
    AuthGroupFile /dev/null
    AuthName "WordPress Admin Access Control"
    AuthType Basic
    <LIMIT GET>
    order deny,allow
    deny from all
    # whitelisted IP addresses
    allow from xx.xx.xx.xxx
    allow from xx.xx.xx.xxx
    </LIMIT>

    Things to consider:
    – As showed in the sample, there’s no need to create user/password combination, since you only want to limit the access of the administrative area to certain ip addresses.
    – Please don’t forget to replace xx’s with your public ip addresses you want to whitelist.

    In addition, I found this article you can read, it shows you 11 tips to protect the administrative area (including the .htaccess configuration you’re evaluating, as part of the tips).

Viewing 1 replies (of 1 total)