Everything2
Near Matches
Ignore Exact
Full Text
Everything2

How to set proper banmasks

created by phraggle

(idea) by phraggle (3.1 wk) (print)   ?   (I like it!) Thu Jan 16 2003 at 3:10:42

On IRC it is useful sometimes to be able to ban certain troublemakers from channels you are on. To do this you need to have ops on the channel you want to ban them from.

Banning is done with the +b channel mode. You use this typically to ban wildcards of hostmasks. Everyone on IRC has a hostmask: it looks like this:

fragglet!fraggle@foobarmonkey.plus.com

The first part is their IRC nick.

The second is their username. This part is not very important nowadays as it is much rarer now for people to be IRCing from multi user systems. It is common for the IRC server to query the ident server on your computer when you connect to verify the username. On some IRC networks servers will let you in if they cannot verify your username, but you have a '~' prepended to the front.

The third part is their host name. If no reverse DNS is set up properly this will be an IP.

An example of a naive banmask is something like this:

+b fragglet!*@*

What this does is to ban by their nickname only. Clearly this is not a very effective banmask; all they need to do is change their nick and rejoin the channel. Something better would be:

+b *!*fraggle@foobarmonkey.plus.com

This bans a particular user from a particular host, which is generally better. Note the '*' at the start, this is to catch possible ~'s if they are verified or not. It is common for inexperienced people to do something like:

-:- mode/#everything (+b *!fraggle@*.plus.com) by jethro_bodine

Now all they need to do is change their username. If this happens (or is likely to happen) you can do:

+b *!*@foobarmonkey.plus.com

Which bans all users from that particular host. Of course, many ISPs use dynamic DNS, so if this person is incredibly determined to get into your shonky little IRC channel, they can hang up their modem, reconnect and get a different host. If this is the case, do something like:

+b *!*@*.plus.com

This bans all hosts in the 'plus.com' domain. Typically this is rather overkill though, as you could be banning other legitimate users who may be using the same ISP.

Note that for IP'd hosts this is the other way round: networks go from the left side rather than the right, so for example:

+b 212.159.*


printable version
chaos

Tabitha's Secret Reverse DNS Shonky When I was young Time had no wings
ident public transport
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
Just another sprinkling of indeterminacy
Information War is coming: whose side are you on?
The Great Gatsby
Nephelococcygia
Harry Potter and the Half-Blood Prince
list collector
They say the prettiest girls get to be angels
On Menu Writing
helepolis
Bill Clinton
Etacism
Solar sail
The bride of Vankenstrein - conception
condom
New Writeups
Mythi
July 24, 2008(personal)
locke baron
The fall of Earth(fiction)
BookReader
Fear the Cold(dream)
Pavlovna
Kathleen MacInnes(person)
stainedglass
1(fiction)
kalen
Three "T"s(idea)
octillion369
Undead(idea)
archiewood
Ico(fiction)
Heisenberg
Why I love Everything2(log)
octillion369
Death Knight(person)
XWiz
Are you hoping for a miracle?(review)
santo
The Host(review)
LostPsion
"Shut the Fuck Up" Theaters(idea)
beatrice
You've been slowly taking me over for nearly a year, do you know that?(idea)
Berek
YouTube(thing)
This affordable entertainment brought to you by The Everything Development Company