Anybody have any idea where to place this mod which bans a domain from submission?
This mod was previously installed on Links 1.1 but I don't know where to place it in Links 2b5. The structure of the db.pl file has changed.
This routine is placed in the Links.cfg file:
# This is where you place the URL of a banned web site.
#------------------------------------------------------------->
# Urls you do NOT want in your database
@banurls = ("microsoft.com", "www.anydomain.on.ca/spam/killed");
#<-------------------------------------------------------------
AND this is placed in the DB.pl file (I don't know where):
#------>
foreach $banurl (@banurls) {
if (($record{'URL'}) =~ m/$banurl/) {
{ push (@input_err, "<h3>We're sorry but the URL '$record{'URL'}' is BANNED from our site entirely. Do NOT spam our index!</h3>"); }
}
}
#<------
John
[This message has been edited by jmurphy (edited February 17, 1999).]
This mod was previously installed on Links 1.1 but I don't know where to place it in Links 2b5. The structure of the db.pl file has changed.
This routine is placed in the Links.cfg file:
# This is where you place the URL of a banned web site.
#------------------------------------------------------------->
# Urls you do NOT want in your database
@banurls = ("microsoft.com", "www.anydomain.on.ca/spam/killed");
#<-------------------------------------------------------------
AND this is placed in the DB.pl file (I don't know where):
#------>
foreach $banurl (@banurls) {
if (($record{'URL'}) =~ m/$banurl/) {
{ push (@input_err, "<h3>We're sorry but the URL '$record{'URL'}' is BANNED from our site entirely. Do NOT spam our index!</h3>"); }
}
}
#<------
John
[This message has been edited by jmurphy (edited February 17, 1999).]