mIRC Homepage
Posted By: juble anti spam - 21/07/05 05:00 PM
hi fellows
i need a simply anti-spam "on text" for query's spam words
like "www" "com" etc
when someone say those words to close the query window and to ignore him
thanks for advance
Posted By: Mentality Re: anti spam - 21/07/05 05:16 PM
In the case of spam it's usually better to use the ON OPEN event, as most spam is automated from infected users or spam drones that will message you when you join a channel, speak on a channel or mention their nickname. Generally, someone wouldn't spam you on the 2nd or 3rd line of a private message.

You can halt private messages using the ^ prefix on the event, and an if statement to check what is inside the message. For example,

on ^*:open:?:*:{
if (*http://* iswm $1-) || (*www* iswm $1-) {
.msg $nick Spam detected, ignored message
.ignore -p300 $nick 3
halt
}
}


On top of halting the message, the above would message the user that their spam has been ignored, and add them to your ignore list for 300 seconds (5 minutes).

This would be placed in your remote, ALT+R > File > New.

For further help you could refer to the following help files:
/help halting default text
/help ON OPEN
/help if then else


Regards,
Posted By: MikeChat Re: anti spam - 21/07/05 05:35 PM
In my experiance most spam bots join a channel, spam in PM all the nicks in the nicklist (the reason the bot joins is to get the nicklist), and leave. Some join a channel, idle a moment (waiting for the server to send the nicklist) before leaving and then spam those in the channel.
This will ignore the bot from the join/part in either case.

put into a remote file

on *:JOIN:#:{ .ignore -pntidu320 $nick }
on *:part:#:{ .ignore -pntidu320 $nick }

This will stop any PM posts except to the channel, but spambots that do channel messages are less frequent.
Posted By: juble Re: anti spam - 21/07/05 06:09 PM
thanks guys
both of u !
Posted By: Riamus2 Re: anti spam - 21/07/05 06:10 PM
Though sometimes legitimate PMs are done in that first 320 seconds. I know I'd personally rather just close any window with that information. Just my preference. laugh
Posted By: MikeChat Re: anti spam - 21/07/05 10:34 PM
I have it set in a group so I can turn it off, I also have a message blocker that you add people who can bypass the block which is what I usually have on.
Posted By: Riamus2 Re: anti spam - 22/07/05 01:14 PM
Ah, ok. That makes sense, then. smile
© mIRC Discussion Forums