PDA

View Full Version : ioB ban by ip script (pure tcl)


Ofloo
05-04-2004, 10:25 AM
# Commands:
# - site addban <ipaddr> <reason>
# - site delban <ipaddr>
# - site banlist
# - site clearban
# Note:
# - while adding an ip you can use wildcard chars like *
# example 127.0.0.* or *.0.0.* or 127.0.0.1 and so on
# - User with gid 0 is not can not be banned with this ..

install

# [FTP_Post-Command_Events]
# user = %TCL ..\scripts\ioB\ioB.tcl login %[$ip]

# [FTP_Custom_Commands]
# addban = TCL ..\scripts\ioB\ioB.tcl addban
# delban = TCL ..\scripts\ioB\ioB.tcl delban
# banlist = TCL ..\scripts\ioB\ioB.tcl banlist
# clearban = TCL ..\scripts\ioB\ioB.tcl clearban

# [FTP_SITE_Permissions]
# addban = 1M
# delban = 1M
# banlist = 1M
# clearban = 1M

Mouton
05-04-2004, 10:30 AM
post scripts in ioftpd.com/scripts/new_script.php

EwarWoo
05-05-2004, 05:33 AM
Looks good :D
Scripting work is always appreciated.
Would prolly recommended changing name to ioBan or some such but.
ioB is widely used as abbreviation for ioBanana so could create confusion.