Re: Anti hammer and banlist (IP Access)
Posted: Fri Feb 11, 2011 4:07 pm
Can you explain more about how I'm supposed to run the code you posted? I'm not understanding.
Thanks,
-B
Thanks,
-B
The official forum of Wing FTP Software
https://bbs.wftpserver.com/
Code: Select all
local ipmasks = c_GetIPMaskList("%Domain")
local domain_ipmasks = {}
if type(ipmasks) == "table" then
for _,ipmask in pairs(ipmasks) do
local temp = {}
table.insert(temp,ipmask.ip)
table.insert(temp,ipmask.refuse)
table.insert(domain_ipmasks,temp)
end
end
table.insert(domain_ipmasks,{"%IP",true})
c_SetIPMaskList("%Domain",domain_ipmasks)