Use HTACCESS File to limit access to IP only half working
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I am trying to use my HTACCESS file to block all IP's but the ones I want to whitelist.
Below is my HTACCESS FILE:
<LIMIT GET>
order deny,allow
deny from all
# whitelist Boston IP
allow from 199.xx.xx.xx
# whitelist NY IP
allow from 199.xx.xx.xx
# whitelist SF IP
allow from 96.xx.xx.xx
</LIMIT>
To test I did not include the IP I would access the site from. When I do this I am still seeing data load from the site but there is no theme or styles associated with the data.
Question: How do I set it up so unless your IP is whitelisted you do not see the site at all?
apache-httpd ip htaccess
add a comment |Â
up vote
0
down vote
favorite
I am trying to use my HTACCESS file to block all IP's but the ones I want to whitelist.
Below is my HTACCESS FILE:
<LIMIT GET>
order deny,allow
deny from all
# whitelist Boston IP
allow from 199.xx.xx.xx
# whitelist NY IP
allow from 199.xx.xx.xx
# whitelist SF IP
allow from 96.xx.xx.xx
</LIMIT>
To test I did not include the IP I would access the site from. When I do this I am still seeing data load from the site but there is no theme or styles associated with the data.
Question: How do I set it up so unless your IP is whitelisted you do not see the site at all?
apache-httpd ip htaccess
Conclusion: the problem is not theLIMIT
clause, but what you apply it to.
â Satà  Katsura
Oct 10 '17 at 13:36
I am seeing my issue now. thanks for pointing that out.
â Denoteone
Oct 10 '17 at 13:45
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am trying to use my HTACCESS file to block all IP's but the ones I want to whitelist.
Below is my HTACCESS FILE:
<LIMIT GET>
order deny,allow
deny from all
# whitelist Boston IP
allow from 199.xx.xx.xx
# whitelist NY IP
allow from 199.xx.xx.xx
# whitelist SF IP
allow from 96.xx.xx.xx
</LIMIT>
To test I did not include the IP I would access the site from. When I do this I am still seeing data load from the site but there is no theme or styles associated with the data.
Question: How do I set it up so unless your IP is whitelisted you do not see the site at all?
apache-httpd ip htaccess
I am trying to use my HTACCESS file to block all IP's but the ones I want to whitelist.
Below is my HTACCESS FILE:
<LIMIT GET>
order deny,allow
deny from all
# whitelist Boston IP
allow from 199.xx.xx.xx
# whitelist NY IP
allow from 199.xx.xx.xx
# whitelist SF IP
allow from 96.xx.xx.xx
</LIMIT>
To test I did not include the IP I would access the site from. When I do this I am still seeing data load from the site but there is no theme or styles associated with the data.
Question: How do I set it up so unless your IP is whitelisted you do not see the site at all?
apache-httpd ip htaccess
apache-httpd ip htaccess
asked Oct 10 '17 at 13:26
Denoteone
1062
1062
Conclusion: the problem is not theLIMIT
clause, but what you apply it to.
â Satà  Katsura
Oct 10 '17 at 13:36
I am seeing my issue now. thanks for pointing that out.
â Denoteone
Oct 10 '17 at 13:45
add a comment |Â
Conclusion: the problem is not theLIMIT
clause, but what you apply it to.
â Satà  Katsura
Oct 10 '17 at 13:36
I am seeing my issue now. thanks for pointing that out.
â Denoteone
Oct 10 '17 at 13:45
Conclusion: the problem is not the
LIMIT
clause, but what you apply it to.â Satà  Katsura
Oct 10 '17 at 13:36
Conclusion: the problem is not the
LIMIT
clause, but what you apply it to.â Satà  Katsura
Oct 10 '17 at 13:36
I am seeing my issue now. thanks for pointing that out.
â Denoteone
Oct 10 '17 at 13:45
I am seeing my issue now. thanks for pointing that out.
â Denoteone
Oct 10 '17 at 13:45
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
The Require Directive can be used when mod_authz_core
is loaded:
<Limit GET>
# whitelist Boston IP
Require ip 199.xx.xx.xx
# whitelist NY IP
Require ip 199.xx.xx.xx
# whitelist SF IP
Require ip 96.xx.xx.xx
</Limit>
Or just one line:
<Limit GET>
# Boston NY SF
Require ip 199.xx.xx.xx 199.xx.xx.xx 96.xx.xx.xx
</Limit>
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
The Require Directive can be used when mod_authz_core
is loaded:
<Limit GET>
# whitelist Boston IP
Require ip 199.xx.xx.xx
# whitelist NY IP
Require ip 199.xx.xx.xx
# whitelist SF IP
Require ip 96.xx.xx.xx
</Limit>
Or just one line:
<Limit GET>
# Boston NY SF
Require ip 199.xx.xx.xx 199.xx.xx.xx 96.xx.xx.xx
</Limit>
add a comment |Â
up vote
0
down vote
The Require Directive can be used when mod_authz_core
is loaded:
<Limit GET>
# whitelist Boston IP
Require ip 199.xx.xx.xx
# whitelist NY IP
Require ip 199.xx.xx.xx
# whitelist SF IP
Require ip 96.xx.xx.xx
</Limit>
Or just one line:
<Limit GET>
# Boston NY SF
Require ip 199.xx.xx.xx 199.xx.xx.xx 96.xx.xx.xx
</Limit>
add a comment |Â
up vote
0
down vote
up vote
0
down vote
The Require Directive can be used when mod_authz_core
is loaded:
<Limit GET>
# whitelist Boston IP
Require ip 199.xx.xx.xx
# whitelist NY IP
Require ip 199.xx.xx.xx
# whitelist SF IP
Require ip 96.xx.xx.xx
</Limit>
Or just one line:
<Limit GET>
# Boston NY SF
Require ip 199.xx.xx.xx 199.xx.xx.xx 96.xx.xx.xx
</Limit>
The Require Directive can be used when mod_authz_core
is loaded:
<Limit GET>
# whitelist Boston IP
Require ip 199.xx.xx.xx
# whitelist NY IP
Require ip 199.xx.xx.xx
# whitelist SF IP
Require ip 96.xx.xx.xx
</Limit>
Or just one line:
<Limit GET>
# Boston NY SF
Require ip 199.xx.xx.xx 199.xx.xx.xx 96.xx.xx.xx
</Limit>
answered Oct 10 '17 at 15:24
hschou
1,66349
1,66349
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f397227%2fuse-htaccess-file-to-limit-access-to-ip-only-half-working%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Conclusion: the problem is not the
LIMIT
clause, but what you apply it to.â Satà  Katsura
Oct 10 '17 at 13:36
I am seeing my issue now. thanks for pointing that out.
â Denoteone
Oct 10 '17 at 13:45