Author Topic: Blacklist IP from Joining  (Read 1982 times)

I ran into a problem with banning someone like Zealot, Robo Noob or Glass. It's that once you ban them, they just get on a different alt key. Now, instead of tracing logs and banning IPs that match up, why not just blacklist the IP from the server? Or even just show an alert when a player who just joined's IP matches that of a banned user? I think it wouldn't take that long. I'm not a Torquescript coder though, so bear with me.

IP's are very easy to change.

IP's are very easy to change.

Is there a better way to block them?

Is there a better way to block them?
Just keep banning them by ID.

Just keep banning them by ID.

instead of tracing logs and banning IPs that match up, why not just blacklist the IP from the server?

instead of tracing logs and banning IPs that match up, why not just blacklist the IP from the server?
IP's are very easy to change.



Do you not get that instead of interrogating every person who joins the server isn't possible while hosting and moderating? I get IPs are easy to change.


jeep, just cause it's a crappy method doesn't mean it won't be ineffective.
i have a resource that might be helpful

function IPisBanned(%ip)
{
   new fileObject(BanFindFO) { targetIP = %ip; };
   BanFindFO.openForRead("config/server/BANLIST.txt");
   while(!BanFindFO.isEOF())
   {
      BanFindFO.line = BanFindFO.readLine();
      if(BanFindFO.targetIP $= getField(BanFindFO.line, 4))
      {
         BanFindFO.close();
         BanFindFO.delete();
         return true;
      }
   }
   BanFindFO.delete();
   return false;
}


now just package GameConnection::onConnectRequest(%this, %things, %things, %things...
« Last Edit: July 24, 2012, 10:10:20 PM by Lugnut »

jeep, just cause it's a crappy method doesn't mean it won't be ineffective.
i have a resource that might be helpful

if they're stupid enough to be banned they're stupid enough not to change routers/get a proxy

besides scriptkiddy mcgee okiver

if they're stupid enough to be banned they're stupid enough not to change routers/get a proxy

besides scriptkiddy mcgee okiver
well some-
ninja goddamn


Got a problem with the fact Robo and I are key hoarders?

golden thread
are you gonna just keep adding under line things to your name?
Got a problem with the fact Robo and I are key hoarders?
slick?


We also have to take in account of alts, some people have more than one ID.

 :cookieMonster: