Trying to limit access to development site by IP via htaccess
I have a WordPress development site that I want to be accessible only to my IP address. I’ve been trying to do this via htaccess, but I can’t get it to work.
First, I tried this:
# ALLOW USER BY IP <Limit GET POST> order allow,deny allow from 184.108.40.206 deny from all </Limit>
Then I tried this:
# ALLOW USER BY IP <Limit GET POST> order deny,allow deny from all allow from 220.127.116.11 </Limit>
(Obviously, my IP address is not actually 18.104.22.168!)
Both of these locked me out — 403 Forbidden. What am I doing wrong? (Yes, I did double-check my IP address.)
- The topic ‘Trying to limit access to development site by IP via htaccess’ is closed to new replies.