Tech Support Forum banner
Status
Not open for further replies.
1 - 3 of 3 Posts

· Registered
Joined
·
1 Posts
Discussion Starter · #1 ·
Is it possible to block an ip range and allow one single ip to access a site using .htaccess?

I know the script for denying an ip range let's say 203.218.xx.xxx is

<Files 403.shtml>
order allow,deny
allow from all
</Files>

deny from 203.218.
(I copy from my Cpanel file manager)


If I wish to allow an ip add 203.218.22.777 access, how do I go about it?

Thanks!
 

· Registered
Joined
·
4,942 Posts
It depends ... If it works like ACL's on a router, then once a packet meets a condition, no other checks are made.

Can you do partial ranges, ie:

deny from 203.218.0.0-203.218.22.76
deny from 203.218.22.78-203.218.255.255
allow from 203.218.22.77
 
1 - 3 of 3 Posts
Status
Not open for further replies.
Top