Page 1 of 1

sharing accounts

Posted: Sat Mar 13, 2010 7:47 pm
by overkill
I would like to see the ability to automatically ban a user account if they decide to share their account. For example: if multiple IPs are seen connecting under the same user.

Re: sharing accounts

Posted: Sun Mar 14, 2010 4:16 pm
by FTP
I have wrote a lua script for you, please look at here:
http://www.wftpserver.com/bbs/viewtopic.php?f=6&t=187

Re: sharing accounts

Posted: Sat Mar 20, 2010 9:01 pm
by overkill
Thank you for the script. Can you add the ability to do a permanent ban instead of just a timed ban? How can I use it with a standard license? It tells me the event manager is not availible.

Re: sharing accounts

Posted: Sun Mar 21, 2010 3:25 am
by FTP
Do a permanent ban is very easy, just replace the line:

c_AddTempBlockIp("%Domain","%IP",nBlockTime)

with this new script:

local tabIPMask = c_GetIPMaskList("%Domain")
table.insert(tabIPMask,{"%IP",true})
c_SetIPMaskList("%Domain",tabIPMask)


And BTW, only Corporate edition supports this advanced feature. If you want to upgrade, please contact with us through email.