Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Restrict access to search.cgi

Quote Reply
Restrict access to search.cgi
Is there a way to only allow searches from my domain, maybe a PLUGIN.
Quote Reply
Re: [rascal] Restrict access to search.cgi In reply to
Hi,

To be honest, you'd probably be better (in terms of performance) to add something like;

Code:
if ($ENV{'HTTP_REFERER'} !~ /\Qyourdomain.com/i) {
print $IN->header();
print "ERROR: You can't search from $ENV{'HTTP_REFERER'}!";
exit;
}

..right after;

Code:
Links::init_user();

..and change;

Code:
use Links qw/$CFG $IN/;

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!