READ THE RULES
0 Members and 1 Guest are viewing this topic.
--[[ Block Proxy 1.0 LUA 5.1x [Strict][API 2] By Mutor 08/14/10 An meager attempt to block proxy users. This script generates a config file with the same filename as script file but with .dat extension. Should you edit the config, just restart the script. -Option for action on detection [None/Disconnect/Kick/Redirect] -Option to exclude by proxy users by nick -Option for custom reason for action -Option to ban after 'x' detections]]
-- "Botname" ["" = hub bot] ["Bot"] = #Bitch, -- Admin's nick for status / error messages ["" = OpChat] ["OpNick"] = "" -- "Botname" ["" = hub bot], ["Ports"] = "#Bitch" -- Check if users are using these known proxy ports ["Ports"] = {8080,80,81,1080,6588,8000,3128,553,554,4480}, -- Check I.P. regardless of profile settings ["DoIpCheck"] = "true",}
is that right?
Block Proxy 1.0 L5.1.lua:75: bad argument #1 to 'Kick' (table expected, got nil)
Cfg = { -- "Botname" ["" = hub bot] ["Bot"] = "", -- Admin's nick for status / error messages ["" = OpChat] ["OpNick"] = "Mutor", -- Check if users are using these known proxy ports ["Ports"] = {8080,80,81,1080,6588,8000,3128,553,554,4480}, -- Penalty for Proxy connection [0 = None / 1 = Disconnect / 2= Kick {tempban) / 3 = Redirect] ["Penalty"] = 3, -- Redirect address. Used if Penalty = 3 ["" = default main redirect address from hub] ["RedirAdd"] = "", -- Message to send to user / reason for penalty ["" = default] ["Reason"] = "", -- Check I.P. regardless of profile settings [true/false] ["DoIpCheck"] = true,}
Cfg = { -- "Botname" ["" = hub bot] ["Bot"] = "", -- Admin's nick for status / error messages ["" = OpChat] ["OpNick"] = "Mutor", -- Check if users are using these known proxy ports ["Ports"] = {8080,80,81,1080,6588,8000,3128,553,554,4480}, -- Penalty for Proxy connection [0 = None / 1 = Disconnect / 2= Kick {tempban) / 3 = Redirect] ["Penalty"] = 2, -- Redirect address. Used if Penalty = 3 ["" = default main redirect address from hub] ["RedirAdd"] = "", -- Message to send to user / reason for penalty ["" = default] ["Reason"] = "", -- Check I.P. regardless of profile settings [true/false] ["DoIpCheck"] = true, -- Excluded nicks as literal strings ["Excluded"] = {"Mutor","OtherNick"}, -- Ban user on this many detections [if Penalty > 0] ["Penalty"] = 3,}
--[[ Block Proxy 1.1 LUA 5.1x [Strict][API 2] By Mutor 08/16/10 An less meager attempt to block proxy users then previous version. This script generates a config file with the same filename as script file but with .dat extension. Should you edit the config, just restart the script. -Option for action on detection [None/Disconnect/Kick/Redirect] -Option to exclude by proxy users by nick -Option for custom reason for action -Option to ban after 'x' detections +Changes from 1.0 18/17/10 +Added two (2) online checks, thus the socket lib required Dependencies: PxLuaSocket 2.0.2, download here: http://www.czdc.org/PtokaX/Libs-0.4.0.0RC6/PXLuaSocket-2.0.2.7z Extract to PtokaX\scripts\libs]]