Page 1 of 1

Block certain hosts

Posted: Thu Mar 10, 2005 9:13 pm
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.

Posted: Thu Mar 10, 2005 9:37 pm
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.

Posted: Thu Mar 10, 2005 9:45 pm
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;
};

Posted: Thu Mar 10, 2005 10:06 pm
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)