Web Hosting Talk







View Full Version : Blocking ip's.


sphere2
11-08-2002, 12:11 AM
What's the best way to block some ip's without blocking others?

I think the subject has come up a few times before. There are some ip's that are just a waste of time and I would love to have those ip's blocked.

Any ideas would be appriciated.

Or if there is a data base of ip's and certain emails that should be avoided that would be appriciated.

Thanks.

graham
11-08-2002, 12:14 AM
what are you trying to block an IP from? If you are trying to block an IP from accessing a site you can just use htaccess.

AuthName "Site"
AuthType Basic
<Limit GET POST>
order allow,deny
allow from all
deny from .aol.com
deny from .webhostingtalk.com
deny from 123.54.243.555
deny from your.hostname.com
</Limit>

sphere2
11-08-2002, 12:23 AM
I think I am speaking of country specific.

I seem to get the odd few customers from a few specific countries that are a waste of time pretty much.

I seem to have a handle on most of them because orders are manually checked. But it's a waste on staff resources.

So I was thinking of blocking the ip's, but it seems like you block one and there is going to be another.

Short of blocking some countries, which I don't want to do cause that's kinda discrimintory. I'm trying to find the best work around.

But maybe one at time is the thing to do, along with certain emails.

Kaumil
11-08-2002, 03:36 AM
I know that you can find IP blocks that are in certain area's of the world and block them by doing that. How? I wouldn't know. But try finding IP blocks for certain areas of the world.

Alex042
11-08-2002, 01:53 PM
There are IP banning scripts that should do this. The right script should allow banning single IP's, an IP range, or even a whole host. I've been working on one in ASP which works with a forum, but there are many stand alone scripts that will do virtually the same thing.

sphere2
11-08-2002, 02:02 PM
I'll try one of these methods see how it goes.

Something that will filter out the wasteful and only let in the wanted.

Sounds good. I will see how it goes.

Thanks everyone for the feedback.

silversurfer
11-08-2002, 02:22 PM
I have the ip ranges by countries if you are interested. But my lists are huge as it list all the owners by ranges. Anyway...

sphere2
11-08-2002, 02:49 PM
I would appriciate that. I will pm you and see if there is a way to use what you have with the ip's that I have already.


Originally posted by silversurfer
I have the ip ranges by countries if you are interested. But my lists are huge as it list all the owners by ranges. Anyway...