TMFK Gbans - Global Banning.

By TMFKSOFT on Jun 01, 2011

YES.
I know its a silly idea.
But it could work.

I've seen how MC bans has taken off.
If a user is blacklisted they are banned from all Minecraft servers using MC Bans,

Well why not make it similar. But for IRC?

Im using my website to store the hosts and reasons.

A user joins a channel, if they're blacklisted in the database they are Banned then kicked.
This is useful if an idiot is going around spamming his website in mutliple servers and channels
the host can be suggested with a reason and i can choose if the host should be blacklisted.

I personally this idea is pretty good.
It also can be related to BOPM in a similar way
but for banning idiots, not hackers.

Using the script:
Paste into remotes, OP the bot in the channel.
Sit back with a cup of tea.

Very simple :)

This system is in Alpha. Meaning i only thought it up 30mins ago :)

on *:sockopen:GBANS:{
  sockwrite -nt $sockname GET /gban/check.php?host= $+ %host HTTP/1.1 
  sockwrite -nt $sockname Host: toomuchforkids.co.uk 
  sockwrite -nt $sockname $str($crlf,2) 
}

on *:sockread:GBANS:{
  var %read
  sockread %read
  if ( $pos(%read,:) == 1 ) {
    set %reason $right(%read,-1)

    if ( %reason == FALSE ) {
      msg %chan %nick is not blacklisted.
      sockclose GBANS
      unset %host %nick %chan %reason
    }
    else {
      ban %chan %nick
      kick %chan %nick BLACKLISTED. Reason: %reason
      sockclose GBANS
      unset %host %nick $chan %reason
    }
  }
}

on 1:JOIN:#:{
  notice $nick $chan is protected by TMFK Gbans.
  set %host $right($address($nick,2),$calc( 0 - $pos($address($nick,2),@)))
  set %nick $nick
  set %chan $chan
  sockopen GBANS toomuchforkids.co.uk 80
}

Comments

Sign in to comment.
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.