Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Blocking Unwanted submissions, URLS to my database

Quote Reply
Blocking Unwanted submissions, URLS to my database
Hello,

I did a search but could not find much on this subject.

How do block URL's, auto-submitters from submitting with auto-software
and also keep foreign domains .uk, .de etc. from submitting.

Thanks,

Dave

Quote Reply
Re: Blocking Unwanted submissions, URLS to my database In reply to
In Links.pm

# A list of valid referers. Anyone coming from a page not in
# this list will not be allowed to submit to the directory. Useful
# for spam prevention.
$LINKS{db_referers} = [];


To block domains, you'd have to do a bit of trickery, but probably the simplest thing would be to come up with a regex that would search for the domain-name portion, pick out the .TLD portion, and compare it to a valid list (or exclude list) of patterns.

You'd put this in the "Validation" field of the .def file via the Links Admin.

http://www.postcards.com
FAQ: http://www.postcards.com/FAQ/LinkSQL/

Quote Reply
Re: Blocking Unwanted submissions, URLS to my database In reply to
1st dumb question.
>In Links.pm

># $LINKS{db_referers} = [];

What information goes in here IP addresses or what? Between the brackets with comma's for more than one or how?

Dave


Quote Reply
Re: Blocking Unwanted submissions, URLS to my database In reply to
take a look at...

http://www.gossamer-threads.com/perl/forum/showthreaded.pl?Cat=&Board=LSQLDisc&Number=94720&page=&view=&sb=&vc=1#Post94720