Block certain hosts

Talk about pretty much anything here, but DO NOT USE FOR SUPPORT.

Moderator: Supporters

Locked
reptileman05
Posts: 12
Joined: Tue Feb 22, 2005 9:08 pm
Location: San Antonio, Texas
Contact:

Block certain hosts

Post by reptileman05 »

Is there any way to limit the number of connects for a certain host? Same *.comcast only 3 connections for each host. I'm not sure if this the right place to have posted.
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post by Stealth »

Code: Select all

allow {
  ip NONE;
  hostname *@*.comcast.com;
  class class;
  maxperip 3;
};
Put this BELOW your normal clients allow block, and only comcast people will be limited to 3 per host.
reptileman05
Posts: 12
Joined: Tue Feb 22, 2005 9:08 pm
Location: San Antonio, Texas
Contact:

Post by reptileman05 »

Ok, I want to put an allow section for my bots hoster, if I put the ip what would the code be? Would it be like this:

Code: Select all

allow {
	ip             88.8.88.8;
	hostname       *@*;
	class           clients;
	maxperip 6;
};
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post by Stealth »

Code: Select all

allow { 
   ip 88.8.88.8; 
   hostname NONE; 
   class clients; 
   maxperip 6; 
}; 
If you are making a host-specific allow block, you never use *@*. If you use *@* or *, EVERYONE will match it. (This is explained in doc/unreal32docs.html)
Locked