Is there a way to only allow searches from my domain, maybe a PLUGIN.
May 13, 2005, 9:48 AM
Veteran / Moderator (18441 posts)
May 13, 2005, 9:48 AM
Post #2 of 2
Views: 1412
Hi,
To be honest, you'd probably be better (in terms of performance) to add something like;
print $IN->header();
print "ERROR: You can't search from $ENV{'HTTP_REFERER'}!";
exit;
}
..right after;
..and change;
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!
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!