Server Help

General Questions - Biller:Auto kick IP-Range

BDwinsAlt - Sun Nov 27, 2005 8:42 pm
Post subject: Biller:Auto kick IP-Range
On christmas i am getting a new computer and i have the Visual C++ cds and all. Im editing Catid's biller and leaving the credits to him. (Imagen that)

Anyways, i was wondering how to AutoKick someone when they enter if their ip starts With 162 (aka Quan Chi2)

My bot already does it, i thought it would be funny for my biller to do it too.
Muskrat - Sun Nov 27, 2005 9:26 pm
Post subject:
There's several things wrong with your intentions, but if anyone's going to tell you how to do it, how does that help you improve as a human being? It would just be another "credits go to...". I suggest at least learning enough C to add in a few lines of code to do it.
Purge - Sun Nov 27, 2005 10:38 pm
Post subject:
You know, other people's IP may start with 162 also...
Mine GO BOOM - Sun Nov 27, 2005 10:46 pm
Post subject:
if ((userIP & MASK) == (badIP & MASK)) then BAN

Where userIP is the connecting player's IP address, badIP is the full IP address of the bad user, and MASK is a subnet mask, such as 255.255.255.0 (which will cover the range xx.xx.xx.0 - xx.xx.xx.255).
Anonymous - Mon Nov 28, 2005 12:23 am
Post subject:
Shouldn't this be in another section, the coding one?

-Ex Gravitron
BDwinsAlt - Mon Nov 28, 2005 7:49 am
Post subject:
I think that is only for ASSS.

btw: Thanks guys.
purge: Sai Saici (Quan Chi2) is the only one i know who uses that 162.*.*.* ip. Were not exactly SSC so it won't matter.
Cyan~Fire - Mon Nov 28, 2005 4:14 pm
Post subject:
Well I'm sure at least the second byte doesn't change either.
BDwinsAlt - Mon Nov 28, 2005 5:48 pm
Post subject:
I see it's useally a 162.83.*.* ip, so i'll block that. My bot already does that (even on the release to the public icon_lol.gif ).

icon_rolleyes.gif Hey have you seen my Princessbot? she is a hooker. She says all kind of naughty things. It's hallarious. If you say "no" she's like "Are you gay or something?"
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group