Shoutbox

[Request] Block on x nudges in x seconds - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [Request] Block on x nudges in x seconds (/showthread.php?tid=65645)

[Request] Block on x nudges in x seconds by sno on 08-31-2006 at 03:14 PM

anyone able to make a script that can auto-block a user when they send x amount of nudges in a defined duration to prevent annoyances?


RE: [Request] Block on x nudges in x seconds by Ezra on 08-31-2006 at 04:22 PM

Nudgeback has a simple way of detecting nudges.

If you use this with a timer and a counter you can easily do this.


[Release] Block on x nudges in x seconds by CookieRevised on 08-31-2006 at 10:31 PM

quote:
Originally posted by Ezra
Nudgeback has a simple way of detecting nudges.
that's the only way...

In fact, you actually can't protect yourself totally for floods like this since scripts have a lag. When the nudges are send in a extreme fast way, your script has not the time to react on time (in fact, the functions will only be executed after Messenger and Plus! are done processing everything). So to protect you totally you probably need to have an external program which disregards the nudge messages on protocol level.


quote:
Originally posted by Ezra
If you use this with a timer and a counter you can easily do this.
define easy ;) It's actually not that easy or strait forward to code something like this properly. A lot of checks need to be done (more than I imagined too)... see attached Nudge Flood Protection script (and especially the comments in the script itself)

to alter the flood protection you need to edit four variables in the script:
code:
var floodCount = 10;    // max amount of nudges allowed in the time period
var floodTime = 10000;  // period for floodchecking, in milliseconds
var blockTime = 20000;  // period the contact is being blocked, in milliseconds
                        // (-1 = indefinitely time, aka: contacts will not be unblocked automatically)
var blockMessage = true // true = contact will be notified that he is being blocked
                        // false = contact will not be notified

UPDATE (version 1.1):
- added option to show or not show the message
- when blockTime is -1 (indefinitely) the message will not show the blocktime (was very stupid bug)






previous downloads (version 1.0): 49
RE: [Request] Block on x nudges in x seconds by sno on 09-01-2006 at 02:19 PM

im confused looking at it :P

it isnt working...


RE: [Request] Block on x nudges in x seconds by CookieRevised on 09-01-2006 at 02:57 PM

quote:
Originally posted by sno
im confused looking at it :P

it isnt working...
if you tell exactly what isn't working I maybe can help you...


PS: the script works fine as-is though...
RE: [Request] Block on x nudges in x seconds by Chris4 on 09-01-2006 at 05:31 PM

Works here, thanks Cookie.

Only if I culd have used it when everyone was using the MSNM7.0 'busy bug' :tongue:


RE: [Request] Block on x nudges in x seconds by sno on 09-02-2006 at 10:08 AM

user sends 5 nudges in under 5,000 miliseconds
it did not block them, nothing happened...


RE: [Request] Block on x nudges in x seconds by CookieRevised on 09-02-2006 at 10:25 AM

please read what has been posted


It doesn't block the contact because:

quote:
Originally posted by CookieRevised
to alter the flood protection you need to edit three variables in the script:
code:
var floodCount = 10;    // max amount of nudges allowed in the time period
var floodTime = 10000;  // period for floodchecking, in milliseconds
var blockTime = 20000;  // period the contact is being block, in milliseconds
                        // (-1 = unlimited time, aka: contacts will not be unblocked automatically)

As you can see the default is 10 nudges within 10 seconds and the contact will be blocked for 20 seconds.

Therefore, 5 nudges in 5 seconds is allowed (by default)...

Also:
quote:
Originally posted by CookieRevised
When the nudges are send in a extreme fast way, your script has not the time to react on time (in fact, the functions will only be executed after Messenger and Plus! are done processing everything).

RE: [Request] Block on x nudges in x seconds by sno on 09-02-2006 at 07:18 PM

well 1. the contact sent 10 nudges to make sure
2. i waited atleast 1 min for it to block, it didnt.
3. u didnt need to quote, i already read it and did take note and changed the variables to my liking whihc was 5 nudges in less than 10 secs. and a block for 10mins.


RE: [Request] Block on x nudges in x seconds by CookieRevised on 09-02-2006 at 10:06 PM

I'm sorry but there are no bugs in the script. It works as it supposed to be.

2) You don't need to 'wait' for the block, if the flood protection is triggered the contact is blocked immediatly (if a block time has been set).

3) in future try to post immediatly what didn't worked and what you exactly did. People aren't mind readers ;)....


RE: [Request] Block on x nudges in x seconds by alexp2_ad on 09-02-2006 at 10:08 PM

Are you on a WiFi connection?  Xniff doesn't work on wireless.  Or if you have more than one network adapter it might not have got your IP right too.


RE: [Request] Block on x nudges in x seconds by sno on 09-02-2006 at 10:12 PM

ino people arnt mind readers... but it isnt blocking my contacts.

EDIT:
sigh some1 make 1 that works for wireless? :P


RE: [Request] Block on x nudges in x seconds by cloudhunter on 09-02-2006 at 10:50 PM

Well I use Xniff myself on a wireless connection, and it works for me. It seems to be pretty random whether it works with them or not...

Cloudy


RE: [Request] Block on x nudges in x seconds by crude on 12-05-2006 at 08:57 AM

Hey CookieRevised
can you modify it like if the user wants to send a msg to the blocked user when he/she is unblocked. just like the msg it send b4 blocking.
same as var blockMessage = true to let user control it. so if the user want to send when unblocked var unblockMessage = true ... somthing like that ;)

I guess it will b nice isnt it ;)