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

Correct syntax for db_referers?

Quote Reply
Correct syntax for db_referers?
What is the correct syntax for this line:

# 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} = [];

is it ["buffyguide.com", "buffyguide.net", "buffyguide.org"]?

I'm correct that prefacing www's or subdomains is unnecessary because it just does a regex on the domain name, right?

I opted to install the script myself, for some strange reason.

Any help would be greatly appreciated,

nemesis

--
You refer to the prophecy of The One, who will bring balance to the Force. You believe it's this boy?


---------------------
BuffyGuide.com
Quote Reply
Re: Correct syntax for db_referers? In reply to
Use single quotes...like the following:

Code:

$LINKS{db_referers} =['www.buffyguide.com','buffyguide.com','www.buffyguide.net','buffyguide.net','www.buffyguide.org','buffyguide.org'];


It is best to include all cases of domain addresses since some people may access your site using www.*.* and if you are using relative links in your site, they would be directed to www.domain.com/cgi-bin/links/add.cgi..and, so, if you do _not include the www, then you will get the Auto Submission error message.

Regards,

Eliot

Quote Reply
Re: Correct syntax for db_referers? In reply to
Thank you muchly! Smile


---------------------
BuffyGuide.com
Quote Reply
Re: Correct syntax for db_referers? In reply to
You're welcome.

Regards,

Eliot Lee