PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: Cboy301 on 01 February, 2004, 12:47:39

Title: Peer Guardian
Post by: Cboy301 on 01 February, 2004, 12:47:39
Is there a script that is like the peer guardian that is in mean machine but that i can use with Robocop if sowhere can i find it?
Title:
Post by: nErBoS on 01 February, 2004, 16:10:33
Sorry my question, but what does the peer guardian do ???
Title:
Post by: [NL]trucker on 01 February, 2004, 16:25:32
nErBoS

 asfar as i know it is a program that blocks bad-ip,s
Title:
Post by: nErBoS on 01 February, 2004, 19:50:43
Ok so you want a IP-Blocker here is it..

botname = "IP-Block"
ipblock = {"127.0.0.1","1.1.1.1"}

function Main()
   frmHub:RegBot(botname)
end
   
function NewUserConnected(user, data)
         for i=1,getn(ipblock) do
      if (user.sIP == ipblock[i]) then
user:SendData(botname, "Your IPs isn't allowed here.")
user:Disconnect()

    end
end
end

Best regards, nErBoS
Title:
Post by: pHaTTy on 01 February, 2004, 20:11:01
peer guardian blocks ip ranges, i just finished up on my new RangeMaster look in finished scripts ;)
Title:
Post by: nErBoS on 01 February, 2004, 21:46:27
Ohhh it's a IP-Bot sorry i understood that was a IP-Blocker ( to block ips)  :P

Sorry  :]  

Best regards, nErBoS