Files
fsfe-website/cgi-bin/nph-redirect.cgi
jonas c5ee19631a Added redirect script.
svn path=/trunk/; revision=3137
2003-02-01 16:44:54 +00:00

17 lines
361 B
Perl

#! /usr/bin/perl
use CGI;
if ($ENV{HTTP_REFERER} !~ /\.fsfeurope\.org/) {
print "HTTP/1.0 403 Forbidden\n";
print "Content-type: text/html\n\n";
print "Permission denied for referer $ENV{HTTP_REFERER}.\n";
exit 0;
}
my $q = new CGI;
print "HTTP/1.0 301 Moved\n";
print "Content-type: text/html\n";
print "Location: ".$q->param('address')."\n\n";
exit 0;