Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
help:irc:hostmasks [2007/02/12 22:55]
rubin
help:irc:hostmasks [2007/02/12 22:58] (current)
rubin
Line 18: Line 18:
 ===== Masks in practice ===== ===== Masks in practice =====
 For example, my user@host string is Krobar!krobar@kro.bar, but if I added myself to the userlist that way and I didn't use the nickname Krobar one day, I wouldn't be recognized. On the flip side, if I added myself as *!*@*, then everyone would match. A typical mask is *!*UserID@*.Host This way any nickname used, from any machine in the domain is matched. The * in front of a UserID is usually a good idea, because some servers will add a ~ in front if identd (a nameserver of sorts) isn't working or is too slow. I typically add myself as *!*krobar@kro.bar For example, my user@host string is Krobar!krobar@kro.bar, but if I added myself to the userlist that way and I didn't use the nickname Krobar one day, I wouldn't be recognized. On the flip side, if I added myself as *!*@*, then everyone would match. A typical mask is *!*UserID@*.Host This way any nickname used, from any machine in the domain is matched. The * in front of a UserID is usually a good idea, because some servers will add a ~ in front if identd (a nameserver of sorts) isn't working or is too slow. I typically add myself as *!*krobar@kro.bar
 +
  
  
Line 27: Line 28:
 EXAMPLES: EXAMPLES:
 To match everyone with a .br country ending: To match everyone with a .br country ending:
-  <code>*!*@*.br</code>+<code> 
 +*!*@*.br 
 +</code>
 To match everyone with nick "warez": To match everyone with nick "warez":
-  ''warez!*@*''+<code> 
 +warez!*@* 
 +</code>
 To match your friend John (John!jdoe@d-32.alaska.dialamerica.com): To match your friend John (John!jdoe@d-32.alaska.dialamerica.com):
-  ''*!*jdoe@*.alaska.dialamerica.com''+<code> 
 +*!*jdoe@*.alaska.dialamerica.com 
 +</code>
 When John complains that he's not recognized when he dials in from Florida: When John complains that he's not recognized when he dials in from Florida:
-  ''*!*jdoe@*.dialamerica.com+<code> 
 +*!*jdoe@*.dialamerica.com 
 +</code>
 To match John when his IP shows up instead: To match John when his IP shows up instead:
-  ''*!*jdoe@132.31.206.*''+<code> 
 +*!*jdoe@132.31.206.* 
 +</code>
 To match people with the tell-tale "typehere" userid: To match people with the tell-tale "typehere" userid:
-  *!*typehere@* +<code> 
 +*!*typehere@* 
 +</code>