Hi, i have a channel on my server with VhostServ in order to assign vhosts to any user. So the user needs to enter the channel, type " !vhost my.vhost "
and then !hs on
But the problem now is that i want to block those vhosts that could be administrative ones. Example:
Administrator.MyServer.Com
NetAdmin.Staff.com
IRCOP.ServicesAdmin
(an so on...)
I tryed with a spamfilter like this:
/spamfilter add cpnNPtq block 1h INVALID_VHOST !vhost *admin*
But the word 'admin' must be at the first part of the second line =/.
[12:38] <RopeTest> !vhost admin
#vhost Message blocked: INVALID VHOST
[12:41] <RopeTest> !vhost admin.rope
#vhost Message blocked: INVALID VHOST
[12:42] <RopeTest> !vhost rope.admin
[12:42] <VhostServ> RopeTest, please register your nick first.
(here the spamfilter doesnt match) And i want it to also match this.
I also tryed with
/spamfilter add u block 1h INVALID_VHOST/NICK/IDENT *admin*
But it doesn't block the vhosts with admin
How can i do ?
Thanks!
Spamfilters on Hosts?
try using .* instead of * because regular expressions are NOT the same as wild char matching. Also have a read of the apendixes of the UnrealIRCd documentation on regular expressons to help.
The reason your spamfilter doesnt match is because * means that the character immediatly before it can repeat 0 or MORE times.
So in other words try the following as your spamfilter command:
/spamfilter add c block 1h INVALID_VHOST !vhost .*admin.*
The reason your spamfilter doesnt match is because * means that the character immediatly before it can repeat 0 or MORE times.
So in other words try the following as your spamfilter command:
/spamfilter add c block 1h INVALID_VHOST !vhost .*admin.*
-
- Posts: 4
- Joined: Sat Aug 04, 2007 4:07 pm