Discussion Locked

.htaccess Block an ISP..

0 helpful
0 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I'm looking for some help here guys..
I'm looking to block users from a state, to my website. There is only two ISP (main guys) that I need to block.. I understand how easy this is done, but there is a catch..

I'm looking to block the whole user-base of the ISP except for a select few..

figured it out, nevermind

Lets say the ISP is 22.72/16 (Easy enough to ban) But I want to allow 22.72.111.200 ..

Now with .htaccess if there is a deny of 22.72.
even when I make an "allow" it always just denys the allowed IP anyways...

Is there a proper way to do this? Make the allow take priority over the deny? Even on the same address segment?

Any other suggesttions to accomplish this?

(Running on an apache server)

0 replies

No replies were posted before this discussion closed.

This discussion is closed to new replies.