ADCH++ Guard for adc commands flooding and limit rules

Post finished Hubside Scripts here, known supporting hubsofts for LUA scripting.

ADCH++ | DCWatch | LUADCH
Pirre
Junior Member
Posts: 31
Joined: 10 Nov 2009, 11:57

ADCH++ Guard for adc commands flooding and limit rules

Post by Pirre » 14 Jan 2011, 20:43

A alpha template for a ADCH++ anti flood script. There must be errors but works :) so put it out to be improved and commented.

Only works on adchpp rev 258 and above and is never used on a big hub so ....
Attachments
access.guard.lua
read the header before trying this !!
(108.63 KiB) Downloaded 470 times

Pirre
Junior Member
Posts: 31
Joined: 10 Nov 2009, 11:57

Re: Guard for adc commands flooding and limit rules

Post by Pirre » 16 Jan 2011, 15:29

New version
Changelog

-solved a bug in the onMSG statsrule
-added PFR cmd in the stats
Attachments
access.guard.lua
(111.07 KiB) Downloaded 444 times

Pirre
Junior Member
Posts: 31
Joined: 10 Nov 2009, 11:57

Re: Guard for adc commands flooding and limit rules

Post by Pirre » 17 Jan 2011, 18:19

rev: 1.0.17

Changelog:

Corrected few small errors
Added commands that are known but who can be used to flood the hub due to context
Added comments about replacing access.limit.lua
Attachments
access.guard.lua
read lua's header
(112.67 KiB) Downloaded 446 times

Pirre
Junior Member
Posts: 31
Joined: 10 Nov 2009, 11:57

Re: Guard for adc commands flooding and limit rules

Post by Pirre » 18 Jan 2011, 18:41

rev: 1.0.18

Changelog:

Putted the verify_connection and its command in comment (most users don't have lua socket installed it seems , you can un-comment it if you have as its a nice tool for users to see active or passive mode should be used)

Added commands +showabout and +showrules that permits the hubowner to put a about.txt and rules.txt in the cfg folder and that content will be shown to the user in mainchat.
Attachments
access.guard.lua
(113.86 KiB) Downloaded 440 times

Toast

Re: Guard for adc commands flooding and limit rules

Post by Toast » 19 Jan 2011, 17:28

How about some default values for the guard script ? so that regular users dont have to figure out and also something about how you concluded that those values works.

Spookie
Junior Member
Posts: 19
Joined: 05 Dec 2007, 16:40

Re: Guard for adc commands flooding and limit rules

Post by Spookie » 19 Jan 2011, 17:38

Good idea Toast, that would help .

Good work Pirre,Sript is still working ;)

Pirre
Junior Member
Posts: 31
Joined: 10 Nov 2009, 11:57

Re: Guard for adc commands flooding and limit rules

Post by Pirre » 20 Jan 2011, 14:06

Its not really possible to give "golden" settings but attached HowTo explains a bit more of the scripts logic and the 2 major types of floods it intercepts,hope this helps.

And happy it still runs lol.

rev: 1.0.19

Changelog:

minor fixes.
Attachments
Guard-HowTo.rtf
(4 KiB) Downloaded 485 times
access.guard.lua
(114.1 KiB) Downloaded 423 times

Pirre
Junior Member
Posts: 31
Joined: 10 Nov 2009, 11:57

Re: ADCH++ Guard for adc commands flooding and limit rules

Post by Pirre » 23 Jan 2011, 12:22

rev: 1.0.21

Changelog:

Added rule/limit to force TLS (ADC0/ADCS) support for transfers.
Attachments
access.guard.lua
read lua's header
(116.14 KiB) Downloaded 460 times

Spookie
Junior Member
Posts: 19
Joined: 05 Dec 2007, 16:40

Re: ADCH++ Guard for adc commands flooding and limit rules

Post by Spookie » 06 Feb 2011, 22:38

Missing a easy way to find what rev of this script we are running.
Perhaps it should have a right click "Show Rev" command

Pirre
Junior Member
Posts: 31
Joined: 10 Nov 2009, 11:57

Re: ADCH++ Guard for adc commands flooding and limit rules

Post by Pirre » 09 Feb 2011, 20:45

True :)

nxt version has a about command showing version and mem usage and a few other things ...

Locked