Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Re: [JulesM] Auto submission is not allowed..error

Quote Reply
Re: [JulesM] Auto submission is not allowed..error In reply to
Sorry, my mistake - seems like that is a standard feature:

add.cgi:

Code:
sub process_form {
# --------------------------------------------------------
my ($key, $status, $line, $output);
# Check the referer.
if (@db_referers and $ENV{'HTTP_REFERER'}) {
$found = 0;
foreach (@db_referers) {
$ENV{'HTTP_REFERER'} =~ /$_/i and $found++ and last;
}
if (!$found) {
&site_html_add_failure ("Auto submission is not allowed in this directory. Please visit the site to add your entry.");
return;
}
}

What do you have set in your links.cfg for:

@db_referers

?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread; hot thread Auto submission is not allowed..error JulesM 19255 Sep 20, 2010, 11:02 PM
Thread; hot thread Re: [JulesM] Auto submission is not allowed..error
Andy 19050 Sep 21, 2010, 12:22 AM
Thread; hot thread Re: [Andy] Auto submission is not allowed..error
JulesM 18975 Sep 21, 2010, 8:36 AM
Thread; hot thread Re: [JulesM] Auto submission is not allowed..error
Andy 18959 Sep 21, 2010, 8:40 AM
Thread; hot thread Re: [Andy] Auto submission is not allowed..error
JulesM 18919 Sep 21, 2010, 8:46 AM
Thread; hot thread Re: [JulesM] Auto submission is not allowed..error
Andy 18944 Sep 21, 2010, 8:56 AM
Post; hot thread Re: [Andy] Auto submission is not allowed..error
JulesM 18960 Sep 21, 2010, 9:03 AM
Thread; hot thread Re: [JulesM] Auto submission is not allowed..error
Andy 18928 Sep 21, 2010, 8:58 AM
Thread; hot thread Re: [Andy] Auto submission is not allowed..error
JulesM 18936 Sep 21, 2010, 9:07 AM
Thread; hot thread Re: [JulesM] Auto submission is not allowed..error
Andy 18919 Sep 21, 2010, 9:09 AM
Thread; hot thread Re: [Andy] Auto submission is not allowed..error
JulesM 18894 Sep 21, 2010, 9:29 AM
Post; hot thread Re: [JulesM] Auto submission is not allowed..error
Andy 18910 Sep 21, 2010, 9:51 AM