This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Antiproxy by metroid

Support & discussion of released scripts, and announcements of new releases.
i
i.m.offline
Halfop
Posts: 74
Joined: Thu Mar 02, 2006 11:47 am

Antiproxy by metroid

Post by i.m.offline »

Hello friends,

Thanks to metroid for such a nice code.

Need lil help with this script, I have just tried and it seems to work charm except few things, I guess shall hv in it.

1 - ban the user after kicking em for open proxy
2 - $proxy / $proxy stats - is it possible to make it work from pvt instead of channel main?
3 - except some hosts from being kicked by this.

Thanks for the all the support in advance.

Regards

Code: Select all

#   __ __        __                          ___                                              __     
#  _\ \\ \__    /\ \                        /\_ \                                            /\ \__   
# /\__  _  _\   \_\ \     __   __  __     __\//\ \     ___   _____     ___ ___      __    ___\ \ ,_\ 
# \/__\ \\ \__  /'_` \  /'__`\/\ \/\ \  /'__`\\ \ \   / __`\/\ '__`\ /' __` __`\  /'__`\/' _ `\ \ \/ 
#   /\_   _  _\/\ \_\ \/\  __/\ \ \_/ |/\  __/ \_\ \_/\ \_\ \ \ \_\ \/\ \/\ \/\ \/\  __//\ \/\ \ \ \_
#   \/_/\_\\_\/\ \___,_\ \____\\ \___/ \ \____\/\____\ \____/\ \ ,__/\ \_\ \_\ \_\ \____\ \_\ \_\ \__\
#      \/_//_/  \/__,_ /\/____/ \/__/   \/____/\/____/\/___/  \ \ \/  \/_/\/_/\/_/\/____/\/_/\/_/\/__/
#                                                              \ \_\
#                                                               \/_/
#
#                        /\ \                /\ \__  __                   
#  _____   _ __   ___    \_\ \  __  __    ___\ \ ,_\/\_\    ___     ___     ____ 
# /\ '__`\/\`'__\/ __`\  /'_` \/\ \/\ \  /'___\ \ \/\/\ \  / __`\ /' _ `\  /',__\
# \ \ \_\ \ \ \//\ \_\ \/\ \_\ \ \ \_\ \/\ \__/\ \ \_\ \ \/\ \_\ \/\ \/\ \/\__, `\
#  \ \ ,__/\ \_\\ \____/\ \___,_\ \____/\ \____\\ \__\\ \_\ \____/\ \_\ \_\/\____/
#   \ \ \/  \/_/ \/___/  \/__,_ /\/___/  \/____/ \/__/ \/_/\/___/  \/_/\/_/\/___/
#    \ \_\                                                                 
#     \/_/                                                                 
#       
# Anti proxy scan script.

# /* This is an anti proxy script written for eggdrop. It's been tested on eggdrop1.6.17 with TCL version 8.4
# *  Unlike other anti proxy scripts i've seen around.
# *  This script works just as well on a windrop as it does on a windrop
# *  I've been testing it with a few proxies myself and it clears about 5 proxies in a few seconds without a problem
# *  If it detects a floodjoin happening it will set the modes you choose
# *  (Default mir = moderated, invite only, registered only) These modes are for Quakenet though.
# *  The script will first check what modes you already have set so it won't be unsetting a mode you already had before the floodjoin
# */

# /* Author info
# *  I made this script because i was sick of all the proxies that were joining my channel and spamming it
# *  It's based off the proxycheck.tcl made by James. I rewrote the entire script but kept the basics in.
# *  This script is generally alot faster than that script. But it's still in beta form!
# *  I release this script to http://development.woosah.org
# *  and no other websites are allowed to release this without my explicit authorisation.
# *  If you have an eggdrop website with scripts and you'd like to put this script on your webpage,
# *  Send me an email at metroid at gmail.com replacing at with @
# */

# /* Installing the anti-proxy script
# *  First, put the script into your /scripts folder.
# *  Then at the end of your eggdrop.conf, Put:
# *  source scripts/anti-proxy.tcl
# *  Or if you are using the #development configuration file, you won't have to do anything.
# *  Just rehash the bot after you've done this and it should work.
# *  Read the next part about using it.
# */

# /* Using the anti-proxy script
# *  The script itself pretty much does everything automaticly once it's activated.
# *  You can activate it by typing: <trigger>proxy enable
# *  You can deactivate it by typing: <trigger>proxy disable
# *  If you want some statistics about how many people it has scanned, detected or kicked,
# *  you can use <trigger>proxy stats
# *  Just typing <trigger>proxy will tell you if the check is enabled or disabled, and possibly statistics about it.
# */

namespace eval proxy {
 variable version "0.75"
 variable author  "metroid - #development on irc.quakenet.org"

 variable trigger "$"


 # The sources we dns to find out if a user is a proxy
 variable source { "cbl.abuseat.org" "opm.blitzed.org" "dnsbl.ahbl.org" "list.dsbl.org" "sbl.csma.biz" "dnsbl.njabl.org" }


 setudef flag antiproxy

 setudef str  antijoins
 setudef str  antidetected
 setudef str  antikicked

 # /* Settings! */
 variable flood "4:15" ;# 4 proxies that join in 8 seconds and the channel gets closed
 variable close "30"   ;# This is in seconds! It will keep the channel closed for 30 seconds
 variable modes "mir"  ;# the modes it will set when the channel gets flooded.
 # /* End of settings */


 # /* Don't edit anything below these lines. If you break it, don't expect me to fix it for you. */
 bind JOIN -|- *                   [namespace current]::checkuser
 bind PUB  m|n ${trigger}proxy     [namespace current]::toggle

 variable proxy
 array set proxy ""
}

proc proxy::toggle {nickname hostname handle channel arguments} {
 set command [lindex [split $arguments] 0]
 switch -exact -- [string tolower $command] {
  enable {
   if {![channel get $channel antiproxy]} {
    channel set $channel +antiproxy
    putquick "NOTICE $nickname :Done. Anti-Proxy was enabled."
   } else {
    putquick "NOTICE $nickname :Error: Anti-Proxy is already enabled."
   }
  }
  disable {
   if {[channel get $channel antiproxy]} {
    channel set $channel -antiproxy
    putquick "NOTICE $nickname :Done. Anti-Proxy was disabled."
   } else {
    putquick "NOTICE $nickname :Error: Anti-Proxy is already disabled."
   }
  }
  stats {
   if {([channel get $channel antijoins] != "") || ([channel get $channel antidetected] != "") || ([channel get $channel antikicked] != "")} {
    putquick "NOTICE $nickname :Stats for $channel: [statistics $channel]"
   } else {
    putquick "NOTICE $nickname :No statistics available for $channel."
   }
  }
  default {
   if {[channel get $channel antiproxy]} {
    putquick "NOTICE $nickname :Anti-Proxy is currently enabled for $channel. Statistic: [statistics $channel]"
   } else {
    putquick "NOTICE $nickname :Anti-Proxy is currently disabled for $channel."
   }
  }
 }
}


proc proxy::checkuser {nickname hostname handle channel} {
 checkstats $channel
 if {[channel get $channel antiproxy] && [botisop $channel] && ![string match *users.quakenet.org* $hostname] && ![matchattr $handle m|m $channel] && ![isbotnick $nickname]} {
  channel set $channel antijoins "[expr [channel get $channel antijoins] + 1]"
  regexp {.*\@(.*)} $hostname -> hostname
  if [regexp {[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}$} $hostname] {
   [namespace current]::check $hostname $hostname 1 $nickname $hostname $channel 
  } else {
   dnslookup $hostname [namespace current]::check $nickname $hostname $channel
  }
 }
}

proc proxy::check  {ip hostname status nickname originalhost channel } {
  variable source
   if {$status} {
    regexp {([0-9]{1,3}).([0-9]{1,3}).([0-9]{1,3}).([0-9]{1,3})} $ip -> part1 part2 part3 part4
    set newip "$part4.$part3.$part2.$part1"
 
    foreach proxylist $source {
      dnslookup "$newip.$proxylist" [namespace current]::check2 $nickname $ip $originalhost $hostname $channel $proxylist
    }
   } else {
    putlog "AntiProxy: Couldn't dns resolve $originalhost."
   }
}

proc proxy::check2 {ip hostname status nickname oip realhost originalhost channel rbl } {
  variable proxy
  variable bantime
  variable close
  if {[info exists proxy($channel,$nickname)]} { return 0 }
  set closemode [modes $channel]
   if {$status} {
    set proxy($channel,$nickname) 1
    utimer 10 [list unset [namespace current]::proxy($channel,$nickname)]
    channel set $channel antidetected "[expr [channel get $channel antidetected] + 1]"
    if {[floodjoin $channel]} {
     putquick "MODE $channel +b$closemode $realhost" -next
     set ::close($channel) 1
     utimer $close [list [namespace current]::open "$channel" "$closemode"]
    }
    pushmode $channel +b $realhost
    if [regexp {[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}$} $originalhost] {
     putquick "KICK $channel $nickname :\<$oip\> is in the DNSBL \[Open Proxy\] \(ID: [expr [channel get $channel antikicked] + 1]\)"
    } else {
     putquick "KICK $channel $nickname :\<$oip\> \[$originalhost\] is in the DNSBL \[Open Proxy\] \(ID: [expr [channel get $channel antikicked] + 1]\)"
    }
    channel set $channel antikicked "[expr [channel get $channel antikicked] + 1]"
    utimer 3 [list flushmode $channel]
   }
}
   
proc proxy::open {channel modes} {
 if {[info exists ::close($channel)]} {
   putserv "MODE $channel -$modes"
   unset ::close($channel)
 } else {
  return 0
 }
}

proc proxy::modes {channel} {
 variable modes
 set end ""
 set chanmode [lindex [getchanmode $channel] 0]
 foreach mode [split $modes ""] {
  if {![string match *$mode* $chanmode]} {
   append end $mode
  }
 }
 return "[join $end]"
}

proc proxy::unsetflood {channel} {
 if {[info exists ::flood($channel)]} {
  unset ::flood($channel)
 }
}

proc proxy::statistics {channel} {
 set joins    [channel get $channel antijoins]
 set detected [channel get $channel antidetected]
 set kicked   [channel get $channel antikicked]
 if {$joins == "" || $joins == "0"} {
  return "Statistic Unavailable"
 } elseif {$detected == "" || $detected == "0"} {
  return "Statistic Unavailable"
 } elseif {$kicked == "" || $kicked == "0"} {
  return "Statistic Unavailable"
 } else {
  return "Scanned: $joins, Detected: $detected, Kicked: $kicked  \[[format %.2f [expr ($kicked * 100.0) / $joins]]%\]"
 }
}

proc proxy::checkstats {channel} {
# /* This is set to 1 to prevent the bot from crashing. (for some people this appears to be a problem) */
 if {[channel get $channel antijoins] == ""} { channel set $channel antijoins "1" }
 if {[channel get $channel antidetected] == ""} { channel set $channel antidetected "1" }
 if {[channel get $channel antikicked] == ""} { channel set $channel antikicked "1" }
}

proc proxy::floodjoin {channel} {
 variable flood
 set split [split $flood :]
 set user [lindex $split 0]
 set seconds [lindex $split 1]
 if {![info exists ::flood($channel)]} {
  set ::flood($channel) 1
 } else {
  incr ::flood($channel)
 }
  if {$::flood($channel) >= $user} {
   set ::flood($channel) 0
   return 1
  } else {
    utimer $seconds [list [namespace current]::unsetflood $channel]
  }
  return 0
}

proc proxy::credits {} {
  variable file [lindex [split [info script] "/"] end];
  variable version;
  variable owner "metroid (#development)";
  variable modified [clock format [file mtime [info script]] -format "%Y/%m/%d %H:%M:%S"];
  set channels 0; set total 0; set end ""
  foreach chan [channels] {;
   checkstats $chan
   incr total
   if {[channel get $chan antiproxy]} { incr channels ; lappend end $chan }
  };
 putlog "$file v$version by $owner - Last modified: $modified"
 putlog "$file active on $channels/$total ([format %.2f [expr ($channels.0 * 100.0) / $total.0]]%) channels: [join $end ", "]"
 putlog "$file was successfully loaded!"
}

proxy::credits

# // Copyright: This script was made by metroid (#development). This means, YOU DIDNT MAKE IT! I DID! :p
# // Don't break my copyright because it's lame and i'll sue you ass if you do. Have fun!
Z
Zircon
Op
Posts: 191
Joined: Mon Aug 21, 2006 4:22 am
Location: Montreal

Post by Zircon »

Hi there

I use this TCL, and it s working good. So for your requests :
1- The bot already ban after kickin, isnt this the behavior you r having when it detects an open proxy ?
2- If you type .chaninfo #channel , you can see these stats.
3- As for the exemption list, i ve already made a post requesting this, but no progress until now : http://forum.egghelp.org/viewtopic.php?t=15057
An exemption list is very useful though, to exempt innocent ppl from being taking as proxies, due the poor accuracy/update of some proxy databases.
i
i.m.offline
Halfop
Posts: 74
Joined: Thu Mar 02, 2006 11:47 am

Post by i.m.offline »

Zircon wrote:Hi there

I use this TCL, and it s working good. So for your requests :
1- The bot already ban after kickin, isnt this the behavior you r having when it detects an open proxy ?
2- If you type .chaninfo #channel , you can see these stats.
3- As for the exemption list, i ve already made a post requesting this, but no progress until now : http://forum.egghelp.org/viewtopic.php?t=15057
An exemption list is very useful though, to exempt innocent ppl from being taking as proxies, due the poor accuracy/update of some proxy databases.
Thanks a lot for the response Zircon, really appreciated.

1 - Well no somehow it isn't banning users, its just kicking hence its causing join flood if the user has auto join option enabled.
see this...

Code: Select all

(11-12-07 - 12:09:41) *** chocolate_Factory (~Moudy@85.154.44.48) has joined #dubai
(11-12-07 - 12:09:41) *** chocolate_Factory was kicked by |DUBAI| (Open Proxy is NOT allowed)
(11-12-07 - 12:10:00) *** chocolate_Factory (~Moudy@85.154.44.48) has joined #dubai
(11-12-07 - 12:10:00) *** chocolate_Factory was kicked by |DUBAI| (Open Proxy is NOT allowed)
(11-12-07 - 12:10:12) *** chocolate_Factory (~Moudy@85.154.44.48) has joined #dubai
(11-12-07 - 12:10:12) *** chocolate_Factory was kicked by |DUBAI| (Open Proxy is NOT allowed) 
There are more like this, n it was surprising to me when I saw just a kick without any ban, more like not even having it.

2 - yes I can check .chaninfo but I can't enable and disable it from partyline/telnet and usually I donn prefer ppl knowing when you playing around wid ur bot ;)

3 - even I shall wait for the exempting host, as the bot is kicking the local host of our country so its more like, it will kill the channel by banning em. Lets see if we see any updates soon.

Thanks again for the response.

Cya around
Z
Zircon
Op
Posts: 191
Joined: Mon Aug 21, 2006 4:22 am
Location: Montreal

Post by Zircon »

Hi there

Strange, for me this script kick then ban. Are tou sure that the channel banlist isnt full ? maybe that s why it s not possible for the bot to add the ban.

Sure you can enable/disable antiproxy from the partyline, to enable it in a specific channel, simply do :

Code: Select all

.chanset #channel +antiproxy
and to disable it

Code: Select all

.chanset #channel -antiproxy
Dont except any update anytime soon, i already talked to the author and he has no time. Now i really need to go to sleep, but i ll tell you later what you can do so the script dont ban any person from your country, or your friends from some other problematic countries.
i
i.m.offline
Halfop
Posts: 74
Joined: Thu Mar 02, 2006 11:47 am

Post by i.m.offline »

Zircon wrote:Hi there

Strange, for me this script kick then ban. Are tou sure that the channel banlist isnt full ? maybe that s why it s not possible for the bot to add the ban.

Sure you can enable/disable antiproxy from the partyline, to enable it in a specific channel, simply do :

Code: Select all

.chanset #channel +antiproxy
and to disable it

Code: Select all

.chanset #channel -antiproxy
Dont except any update anytime soon, i already talked to the author and he has no time. Now i really need to go to sleep, but i ll tell you later what you can do so the script dont ban any person from your country, or your friends from some other problematic countries.
Thanks again Zircon

Yes am very much sure that da banlist wasn't full and still the users were not being banned.
Ahh thats kewl to do +antiproxy, didn't know about it.

have a good sleep ahead. will wait for ur advice on how to exempt.

Regards
r
r0t3n
Owner
Posts: 507
Joined: Tue May 31, 2005 6:56 pm
Location: UK

Post by r0t3n »

This in an easy fix for excepting host(s):

Change the proxy::checkuser proc to this:

Code: Select all

proc proxy::checkuser {nickname hostname handle channel} { 
 checkstats $channel 
 if {[channel get $channel antiproxy] && [botisop $channel] && ![string match *users.quakenet.org* $hostname] && ![matchattr $handle mf|mf $channel] && ![isbotnick $nickname]} { 
  channel set $channel antijoins "[expr [channel get $channel antijoins] + 1]" 
  regexp {.*\@(.*)} $hostname -> hostname 
  if [regexp {[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}$} $hostname] { 
   [namespace current]::check $hostname $hostname 1 $nickname $hostname $channel 
  } else { 
   dnslookup $hostname [namespace current]::check $nickname $hostname $channel 
  } 
 } 
}
In the partyline:

Code: Select all

.+user ap:excempt ?host?
if that does not work use
.+host ap:excempt ?host?
Make sure the handle ap:excempt has global +f and/or channel +f

Code: Select all

.chattr ap:excempt +f|
or .chattr ap:excempt |+f ?#channel?
Hope this helps!
r0t3n @ #r0t3n @ Quakenet
Z
Zircon
Op
Posts: 191
Joined: Mon Aug 21, 2006 4:22 am
Location: Montreal

Post by Zircon »

Hi there

Here is a simple solution, not the very elegant one, an exemption list with the script is still the best thing to do. But for now, you can create a handle NOproxy that exempt your country

Code: Select all

.+user NOproxy *!*@*.ae
Now to be able to distinguish these ppl from the others, give it a global flag that is never used, like +h

Code: Select all

.chattr NOproxy +h
Now in the script, change

Code: Select all

![matchattr $handle m|m $channel] 
by

Code: Select all

![matchattr $handle hfomn|hfomn $channel]
Now add the following hosts to exempt all ppl from your country, or at least most of them, coz i dont know if these hosts cover all the possible IP from your country, but for sure, it covers most of them.
*!*@86.96.*
*!*@86.97.*
*!*@86.98.*
*!*@86.99.*
*!*@217.164.*
*!*@217.165.*
*!*@83.110.*
Exemple

Code: Select all

.+host NOproxy *!*@86.96.*
Do it for all the other hosts in the list above, and also do it whenver you need to exempt some range of IP or some domains.

By the way, i see that the kick message is different from the one supposed to appear in case of a proxy, means that you have edited this script. Maybe you messed up with something at that time, and that s why it s not banning. Use a fresh copy then.
i
i.m.offline
Halfop
Posts: 74
Joined: Thu Mar 02, 2006 11:47 am

Post by i.m.offline »

Zircon wrote:Hi there

Here is a simple solution, not the very elegant one, an exemption list with the script is still the best thing to do. But for now, you can create a handle NOproxy that exempt your country

Code: Select all

.+user NOproxy *!*@*.ae
Now to be able to distinguish these ppl from the others, give it a global flag that is never used, like +h

Code: Select all

.chattr NOproxy +h
Now in the script, change

Code: Select all

![matchattr $handle m|m $channel] 
by

Code: Select all

![matchattr $handle hfomn|hfomn $channel]
Now add the following hosts to exempt all ppl from your country, or at least most of them, coz i dont know if these hosts cover all the possible IP from your country, but for sure, it covers most of them.
*!*@86.96.*
*!*@86.97.*
*!*@86.98.*
*!*@86.99.*
*!*@217.164.*
*!*@217.165.*
*!*@83.110.*
Exemple

Code: Select all

.+host NOproxy *!*@86.96.*
Do it for all the other hosts in the list above, and also do it whenver you need to exempt some range of IP or some domains.

By the way, i see that the kick message is different from the one supposed to appear in case of a proxy, means that you have edited this script. Maybe you messed up with something at that time, and that s why it s not banning. Use a fresh copy then.
I liked your idea more, so I will give it a try and hopefully it will work. Meanwhile i will check again for users being banned. Lets see :)

Thanks once again for the gr8 help and prompt response. cheers

Edit-1: I just loaded it and after clearing the ban list, it is banning users as well.
When there were 60 bans in the channel ban list (DALnet) it didn't ban the user but when I removed some bans and left around 25 bans in the ban list, it banned the same user on rejoin.

Cheers
Thanks once again :D

Edit-2:
Look at this:

Code: Select all

(13-12-07 - 09:07:51) *** Ali-Khi (~Business@202.163.109.9) has joined #dubai
(13-12-07 - 09:07:52) *** Ali-Khi was kicked by |DUBAI| (Open Proxy is NOT allowed)
(13-12-07 - 09:07:53) *** |DUBAI| sets mode: +b *!*@202.163.109.9
(13-12-07 - 09:16:14) *** Zain_Ali (~Feelings@202.5.150.151) has joined #dubai
(13-12-07 - 09:16:14) *** Zain_Ali was kicked by |DUBAI| (Open Proxy is NOT allowed)
(13-12-07 - 09:16:17) *** |DUBAI| sets mode: +b *!*@202.5.150.151
(13-12-07 - 09:23:14) *** HANDSOMEe_MANn (~HANDSOMEe@83.110.178.161) has joined #dubai
(13-12-07 - 09:23:14) *** HANDSOMEe_MANn was kicked by |DUBAI| (Open Proxy is NOT allowed)
(13-12-07 - 09:23:18) *** |DUBAI| sets mode: +b *!*@83.110.178.161
(13-12-07 - 09:39:55) *** Marimba (~pppp@CableLink45-13.INTERCABLE.net) has joined #dubai
(13-12-07 - 09:39:58) *** Marimba was kicked by |DUBAI| (Open Proxy is NOT allowed)
(13-12-07 - 09:39:59) *** |DUBAI| sets mode: +b *!*@CableLink45-13.INTERCABLE.net
(13-12-07 - 09:41:38) *** Infusable (infusable@202.61.36.136) has joined #dubai
(13-12-07 - 09:41:38) *** Infusable was kicked by |DUBAI| (Open Proxy is NOT allowed)
(13-12-07 - 09:42:03) *** Infusable (infusable@202.61.36.136) has joined #Dubai
(13-12-07 - 09:42:03) *** Infusable was kicked by |DUBAI| (Open Proxy is NOT allowed)
(13-12-07 - 09:42:42) *** Arabian_Guy911 (~me@212.11.177.127) has joined #DUBAI
(13-12-07 - 09:42:42) *** Arabian_Guy911 was kicked by |DUBAI| (Open Proxy is NOT allowed)
(13-12-07 - 09:51:55) *** TallDude_^D^eeepStr0kes (~smrt@202.133.67.216) has joined #dubai
(13-12-07 - 09:51:55) *** TallDude_^D^eeepStr0kes was kicked by |DUBAI| (Open Proxy is NOT allowed)
(13-12-07 - 09:53:47) *** f-need-help (~pwincez@82.198.29.50.satgate.net) has joined #Dubai
(13-12-07 - 09:53:51) *** f-need-help was kicked by |DUBAI| (Open Proxy is NOT allowed)
(13-12-07 - 09:55:53) *** f-need-help (~pwincez@82.198.29.50.satgate.net) has joined #Dubai
(13-12-07 - 09:55:54) *** f-need-help was kicked by |DUBAI| (Open Proxy is NOT allowed)
Only first few users got banned and rest all r just been kicked :/ unable to understand this. Timestamp is for the reference.
Z
Zircon
Op
Posts: 191
Joined: Mon Aug 21, 2006 4:22 am
Location: Montreal

Post by Zircon »

Probably coz the channel banlist is full. The bans on your banlist never expire ? they always stay there ? hmm, this way the chanel banlist will be full very soon, and you cant make a new bans, just kicks. I personally have a ban-time of 1440 min (24 hours), so all the bans put by the bot are expired after 24 hour, that way the channel banlist never get full. For all the bans that i want to be permanent, i put them through X, the service on Undernet, or through the bot with the dcc command .+ban. I even use a script that ban automatically through X whenever the channel banlist is full.

By the way, did you add the hosts gave you to NOproxy ? coz i see :
(13-12-07 - 09:23:14) *** HANDSOMEe_MANn (~HANDSOMEe@83.110.178.161) has joined #dubai
(13-12-07 - 09:23:14) *** HANDSOMEe_MANn was kicked by |DUBAI| (Open Proxy is NOT allowed)
(13-12-07 - 09:23:18) *** |DUBAI| sets mode: +b *!*@83.110.178.161
means that u didnt add the host *!*@83.110.* to NOproxy. You should add all those hosts i gave you, coz their IP are from your county..
i
i.m.offline
Halfop
Posts: 74
Joined: Thu Mar 02, 2006 11:47 am

Post by i.m.offline »

well even I have got max ban time of 180 mins so the channel ban list is never full and the time users were just kicked, there were just 30 bans in the ban list so ban list being full is not the issue.

Yes I didn't add all the hosts u gave for exempt, just added *!*@*.net.ae for the time being while I was monitoring the bot. At least to let it start working. I had to disable it for now cz of kicks without bans :(

I ain't sure how to sort this now :/
r
r0t3n
Owner
Posts: 507
Joined: Tue May 31, 2005 6:56 pm
Location: UK

Post by r0t3n »

If i remember correctly, for your bot to manage the banlist you must set the channel +dynamicbans, if this is not set then the bot wont remove expired bans.

@Zircon: You need to remember that custom flags should be in capitals, so your +h should be +H, all lowercase flags are used and/or reserved for eggdrop's internal usage, i suggest you change/edit your post with this fix.
r0t3n @ #r0t3n @ Quakenet
Z
Zircon
Op
Posts: 191
Joined: Mon Aug 21, 2006 4:22 am
Location: Montreal

Post by Zircon »

@tosser : it s not a custom flag, i really meant the flag +h
h - highlight (use bold text in help/text files)
this flag is never used, so we can use it with no problem, specially when the person we want to exempt, has no acces to the bot, so.......it s better than the flag +f you proposed, coz for sure, we want the bot not take some innocent ppl for proxies, but we still want ban them for badwords, or bad nicks, or bad idents, or advertisement..etc. Giving them the flag +f , will make them be exempted from all kind of punishment...we want to exempt them only from being taking for proxies :)
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

Fix the max-bans setting in your conf so the bot will set as much bans as the network allows instead of what it thinks is allowed.
Z
Zircon
Op
Posts: 191
Joined: Mon Aug 21, 2006 4:22 am
Location: Montreal

Post by Zircon »

Personally i cant manage my channel without using this script, coz my channel is massively flooded everyday by proxies. So if it s the same for you, it s better to run this script and try to see what s going wrong. But something is for sure, this script works correctly, so you have a problem with some of your settings.
By the way, unlike you, i cannot use the solution i gave you, coz my egg is a quizz bot. So if i create a handle like NOproxy and add to it all the hosts i want to exempt, it will be a mess with the scores. Lucky you you can use the solution i gave you :) For me, i really need an exemption list within this script.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Zircon wrote:@tosser : it s not a custom flag, i really meant the flag +h
h - highlight (use bold text in help/text files)
this flag is never used, so we can use it with no problem
Tosser^^ is correct!

Convention is followed:
There are also 26 user-defined channel flags (A-Z)
All other flags are assigned.

To prevent confusion it's far more intelligent to use "+H" instead of the (already) assigned "+h" for any custom settings in scripts.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Post Reply