Here's something that may work:
http://lookhard.hypermart.net/...-mods/blockurls.html or
http://www.gossamer-threads.com/...i?post=141832#141832 or
http://www.gossamer-threads.com/...i?post=105746#105746 (made for linkdead.cgi. would probably work for add.cgi.)
---------------
From links.cfg:
# Database Options
# --------------------------------------------------------
# You really need to use flock(). However if your system doesn't support it (Win95),
# then turn this off at your own risk!
$db_use_flock = 1;
# Use Pragma: no-cache to stop browsers from caching output? (0 = cache, 1 = nocache)
$db_nocache = 0;
# Use IIS headers? Set this to 1 if your web server needs the full headers (HTTP/1.0 etc.)
$db_iis = 0;
# Field number of category in category.db
$db_main_category = 1;
# Referers -- which hosts are allowed to add to your database.
@db_referers = ();
...explained...
@db_referers If you enter your sites' URL and/or IP address ("
http://mysite.com","
http://www.mysite.com","
12.345.678"), then the add.cgi can only be accessed by using a link from your site (
Add A Resource); it will no longer function by going directly to it, as in pointing your browser to
http://mysite.com/cgi-bin/links/add.cgi. Using @db_referers will reduce the chances of your site being besieged by mass-submissions (spam). Note that each entry between the (parenthesis) is contained by "double quote" marks, and seperated by commas. Also, enter all URLs that apply to your site, with and without the 'www'. If you have a static IP address, you can use it, too.
Leonard
aka PerlFlunkie