mIRC Home    About    Download    Register    News    Help

Topic Options
#125772 - 21/07/05 06:00 PM anti spam
juble Offline
Ameglian cow

Registered: 13/04/05
Posts: 38
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

Top
#125773 - 21/07/05 06:16 PM Re: anti spam
Mentality Offline
Planetary brain

Registered: 01/06/03
Posts: 5024
Loc: London, England
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,
_________________________
Mentality/Chris

Top
#125774 - 21/07/05 06:35 PM Re: anti spam
MikeChat Offline
Hoopy frood

Registered: 12/12/02
Posts: 1245
Loc: California, doooood
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.

Top
#125775 - 21/07/05 07:09 PM Re: anti spam
juble Offline
Ameglian cow

Registered: 13/04/05
Posts: 38
thanks guys
both of u !

Top
#125776 - 21/07/05 07:10 PM Re: anti spam
Riamus2 Offline
Planetary brain

Registered: 13/10/04
Posts: 8327
Loc: MA, USA
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
_________________________
Invision Support
#Invision on irc.irchighway.net

Top
#125777 - 21/07/05 11:34 PM Re: anti spam
MikeChat Offline
Hoopy frood

Registered: 12/12/02
Posts: 1245
Loc: California, doooood
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.

Top
#125778 - 22/07/05 02:14 PM Re: anti spam
Riamus2 Offline
Planetary brain

Registered: 13/10/04
Posts: 8327
Loc: MA, USA
Ah, ok. That makes sense, then. smile
_________________________
Invision Support
#Invision on irc.irchighway.net

Top