How to ban a dynamic ip?

Post here if you need help setting up your server, etc.
User avatar
Fonkay
Match Winner
Posts: 776
Joined: Fri Jul 08, 2005 4:24 pm
Location: eh?
Contact:

Post by Fonkay »

Oh I know!
We could implement usernames and passwords. Then ban everyone with colour or "leet speek" in their names from ever playing again. That should get rid of the douc... I mean.. unpleasant players.
This post does not come with any form of Warranty or Return Policy.
If you're unhappy with this post, please feel free to suck it up and move on.

User avatar
Z-Man
God & Project Admin
Posts: 11253
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne, Jabber: [email protected]
Contact:

Post by Z-Man »

Or let's all get educated and find that mythical "Silence" menu, so we can't be annoyed by chat anymore? And configure our servers so that no degenerate gameplay is possible (100 Rubber, infinite brakes, .00001 cycle turn delay, NOT)?

User avatar
Fonkay
Match Winner
Posts: 776
Joined: Fri Jul 08, 2005 4:24 pm
Location: eh?
Contact:

Post by Fonkay »

I guess I'd have to play to be annoyed by chat.
This post does not come with any form of Warranty or Return Policy.
If you're unhappy with this post, please feel free to suck it up and move on.

QUARG
Round Winner
Posts: 223
Joined: Thu Sep 14, 2006 2:38 pm
Location: montreal

Post by QUARG »

How about name bans... Is that possible? i was also woundering if it is possible for the server too kick or ban for use of a word like say LAG or a cuss word?
Say a command line like " /admin kick_chat_string "
or possibly "/admin silence_chat_string".

epsy
Adjust Outside Corner Grinder
Posts: 2006
Joined: Tue Nov 07, 2006 6:02 pm
Location: paris
Contact:

Post by epsy »

for word censors i'd use an external script :)

User avatar
Z-Man
God & Project Admin
Posts: 11253
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne, Jabber: [email protected]
Contact:

Post by Z-Man »

Yep, and banning by name is even easier: You can easily add "kick PIMP" to your everytime.cfg.

QUARG
Round Winner
Posts: 223
Joined: Thu Sep 14, 2006 2:38 pm
Location: montreal

Post by QUARG »

epsy wrote:for word censors i'd use an external script :)
Ya i have no clue how to do that. Any suggestions on were i could learn that?

And thank you for the suggestion z-man.

User avatar
Z-Man
God & Project Admin
Posts: 11253
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne, Jabber: [email protected]e
Contact:

Post by Z-Man »

Depends; do you know some form of scripting language already? If not, some of us would recommend you learn Python. You'd then write a program that parses the regular server log, scans for lines with "bad" words, and then uses the user ID given at the beginning of each line to send kick commands to the server.

QUARG
Round Winner
Posts: 223
Joined: Thu Sep 14, 2006 2:38 pm
Location: montreal

Post by QUARG »

I have no knowledge of scripting at all though i have a little experience with xml, html, and php but not much.

User avatar
wrtlprnft
Reverse Outside Corner Grinder
Posts: 1679
Joined: Wed Jan 04, 2006 4:42 am
Location: 0x08048000
Contact:

Post by wrtlprnft »

PHP is a scripting language, you can do a censor script in that language just fine.
There's no place like ::1

QUARG
Round Winner
Posts: 223
Joined: Thu Sep 14, 2006 2:38 pm
Location: montreal

Post by QUARG »

Sorry wouldnt know were to start. I am going to have to find some time to learn scripting some time.

zoidberg
On Lightcycle Grid
Posts: 25
Joined: Thu Mar 13, 2008 2:45 am

Post by zoidberg »

how do you interface PHP with the server?

User avatar
Z-Man
God & Project Admin
Posts: 11253
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne, Jabber: [email protected]
Contact:

Post by Z-Man »

Like any other language: you write a script that expects the content of ladderlog.txt (or the server output or both intermixed; which is better depends on what you do) on stdin and writes armagetron console commands as output. You then run the server (schematically, paths omitted)

Code: Select all

tail -n 0 ladderlog.txt | my_script | armagetronad-dedicated

User avatar
wrtlprnft
Reverse Outside Corner Grinder
Posts: 1679
Joined: Wed Jan 04, 2006 4:42 am
Location: 0x08048000
Contact:

Post by wrtlprnft »

Err, tail -n0 does nothing ;-)

You'll want tail -fn0 or, even better, inotail -fn0
There's no place like ::1

User avatar
Z-Man
God & Project Admin
Posts: 11253
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne, Jabber: [email protected]
Contact:

Post by Z-Man »

That was, err, a test. Yes. A test for zoid to figure out. And you ruined it :)

Post Reply