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.

Modification of antiproxy.tcl

Support & discussion of released scripts, and announcements of new releases.
Post Reply
Z
Zircon
Op
Posts: 191
Joined: Mon Aug 21, 2006 4:22 am
Location: Montreal

Modification of antiproxy.tcl

Post by Zircon »

Hi all

I use antiproxy.tcl, done by metroid, and i m happy with it. But the proxy database it checks online arent that accurate, resulting of banning some innocent people. I request help for adding an exemption list. In this list we can have hotmasks like :

*!*@*.users.undernet.org
*!*@41.2??.*
*!*@*.ca
*!*@196.2*
etc, all kind of hostmasks

I think this is the proc to modify to check if the adress is the exemption list :

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 fomn|fomn $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
  }
 }
}
and the second line particulary :

Code: Select all

![string match *users.undernet.org* $hostname]
You can find the complete script here : http://forum.egghelp.org/viewtopic.php?t=9978&start=0
It s the one with the nice ASCII art :)
Last edited by Zircon on Fri Dec 14, 2007 6:39 pm, edited 1 time in total.
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

![matchattr $handle fomn
![string match *users.quakenet.org* $hostname]

The script exempts people in the bot's user list with the flags fomn, and exempts users logged in (using a usermask of *!*@*users.quakenet.org)

You can change that to *users.undernet.org to get the same result for people logged in by X on undernet.

So....if you want to exempt people, add them to yer bot userlist and give them the appropriate flag.
Z
Zircon
Op
Posts: 191
Joined: Mon Aug 21, 2006 4:22 am
Location: Montreal

Post by Zircon »

Thanks for the reply. Yup, from the first beginnig of using this script months ago, i changed quakenet.org to undernet.org, and fomn to vgfomn to exepmt more people from being considered as proxies. But i have a big quizz channel, and the script ban many many of the players, due to the inaccuracy of the databases, and i cannot add all of them one by one to the userlist. Also, i cannot create just one user, and add it all the hosts i want to exempt, coz the quizz will then consider them as the same players, and it s gonna be a mess with the scores. So, adding an exemption list to this script, is the best way to do it in my humble opinion.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Moved to Script Support & Releases.

Contacting the author (metroid) re improvements may also be of benefit.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Z
Zircon
Op
Posts: 191
Joined: Mon Aug 21, 2006 4:22 am
Location: Montreal

Post by Zircon »

Yup, i started by contacting the author, but he has no time right now, and he agreed about posting here to request for modifying his 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:Yup, i started by contacting the author, but he has no time right now, and he agreed about posting here to request for modifying his script.
Excellent :wink:
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Z
Zircon
Op
Posts: 191
Joined: Mon Aug 21, 2006 4:22 am
Location: Montreal

Post by Zircon »

Excellent Wink
Yeah, and if someone can help me, it will be perfect :D
Z
Zircon
Op
Posts: 191
Joined: Mon Aug 21, 2006 4:22 am
Location: Montreal

Post by Zircon »

No idea ?
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

My suggestion would be simply don't use that script & proxy database if it's that poorly maintained. There are other scripts that use RBL's and there are other RBL's that are kept updated. Collateral damage is just part of the blacklisting game, so you either deal with it on a one-by-one basis, or you accept that some innocent people will be inadvertantly banned.
Post Reply