The
BLOCK URL Mod for Links 2.0 is easily portable to LINKS SQL v1.13 (and you could do more like creating a "Banned_Links" table that stores domains and IP addresses of "banned submissions").
But all you have to do to keep things simple is the following:
1) Add the following ARRAY to the
Links.pm module:
Code:
$LINKS{block_urls} = ['DOMAIN1','DOMAIN2','DOMAIN3']; Of course, replace
DOMAIN1, DOMAIN2, DOMAIN3 with actual offending DOMAINs.
2) Then in the
sub process_form routine in the
add.cgi script:
Code:
my $url = $in->param('URL');
my $badurls = $url;
foreach $badurls (@{$CUSTOM{block_urls}}) {
if ($url =~ /$badurls/i) {
&site_html_add_failure({error => <li><b>$url</b> is not allowed in our directory due to excessive submissions or redirection problems. Please re-submit another web address.</li>
});
}
} That's all to it...
Regards,
Eliot Lee