Script Name:
dnsspam.tcl
Version: 1.5.9
Author: dubkat
Script Date: 20/10/2004
Category: Not specified
Downloads: 17
File Name:
dnsspam.tcl.gz
Short Description:
A tcl interface to spamcalc. Bans users who create "DNS pollution" by not using hierarchical hostnames.
Extended Description File
#! this is the description file for dnsspam.tcl by Daniel 'dubkat' Reidy
dnsspam.tcl is a tcl interface to spamcalc.
# quoated direct from http://spamcalc.net
What is dnsspam?
In short, hostnames should be hierarchical.
Something like computer.subdomain.domain.tld. Wasting ip space to create
reverse just to 'look cool' on IRC (because there really is no other
service/place on the internet where your reverse is shown) is therefore
called dns pollution or dnsspam. You can find a more extensive
explanation on www.dnsspam.nl or on this site.
What if it decides a hierarchical host is dnsspam?
This is a very very bad thing, of course. I have taken many precautions
to try to make sure that this does not happen. And so far I have not
found a hierarchical hostname that scores 100 or more. A few examples:
14 - port-213-61-45-64.ber.dial.de.colt.net
0 [whitelisted] - 1Cust197.tnt1.richmond.va.da.uu.net
0 [whitelisted] - pc1-shep1-4-cust169.not.cable.ntl.com
0 [whitelisted] - 0-1pool230-2.nas19.philadelphia1.pa.us.da.qwest.net
0 [whitelisted] - 209-122-217-112.s112.tnt1.atn.pa.dialup.rcn.com
0 [whitelisted] - cpe.atm0-0-0-132109.0x3ef29916.virnxx4.customer.tele.dk
-------------------------------------------------------------------------
The Setup:
1. download spamcalc from http://spamcalc.net/download/
(you want the latest.tgz listed on the page. not the individual files).
2. tar -xvfz spamcalc-*.gz (there are many files there. the spamcalc
binary uses some of those files. so to be safe DONT DELETE ANYTHING).
3. open dnsspam.tcl in your favorite text editor and edit the line that
says 'set spamcalc_path /path/to/spamcalc/binary'
4. adjust the settings as you see fit. but note that setting the
settings too low will ban innocent people and make people
throw pies at you.
5. rehash your bot.
6. .chanset #channel +spamcalc
-------------------------------------------------------------------------
Public Commands:
!spamcalc host.name.to.calculate
!sc (an alias for !spamcalc)
public commands will work in any channel the bot is on, even if
the channel is set -spamcalc
-------------------------------------------------------------------------
Etc...
If you find any bugs, make additions or change the code in some way,
let me know!
By the way, this is my first TCL script, and as my skill progresses,
I may add more functions to the script, and fix bugs, etc.
Check my homepage http://www.dubkat.org/ for updates
and other scripts i may be working on.
Enjoy
Dan
aka dubkat @ efnet