Forum Moderators: phranque

Message Too Old, No Replies

Want to block a spammer's IP, but our IP inside his IP range too

         

urbanzen

3:06 am on Aug 30, 2004 (gmt 0)

10+ Year Member



Greetings Webmasterworld!

I have a few annoying customers trying to harras me. Normally I can block his specific ip, but this time his ISP can only provide a range of IP for us to block. Unfortunately we're inside that range as well.

I'm wondering how we can deny access to a certain range, but permits 1 IP from that to come through.

This is the range to be blocked:
2**.64.0.0/11

=

2**.64.0.0 - 2**.95.255.255

This one needs to come through:
2**.80.85.169

I have a few additions to do that as well...how can I calculate and split that range into 2 ranges?

Sorry for this short and blunt email, as I'm still trying to shut down his access and contact various agents to help us out.

Alan
<snip>

[edited by: jdMorgan at 3:24 am (utc) on Aug. 30, 2004]
[edit reason] No specifics or sigs, please see TOS [/edit]

jdMorgan

3:46 am on Aug 30, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Alan,

Welcome to WebmasterWorld!

Please take a few minutes to review our Terms of Service and the Charter for this forum. Links at bottom and top left of this page, respectively.

If you use RewriteRule in mod_rewrite to block that IP range, then all you have to do is add one or more RewriteConds to exclude the specific IPs you want to allow within that range. The same thing is true if you use the Allow and Deny directives of mod_access.

You should also make sure that you always allow your custom 403 error page to be fetched; otherwise you will get an "infinite loop" of errors when you deny access.

Jim