deadlock Message Board
[ July Full List | Reply ]

Re: Must Visit From
From Jim on 31 July '99
replying to Re: Must Visit From posted by David Cole

The condition has to be met BEFORE the page is served, therefore it
can't be done with Java/script.

The most obvious method doesn't involve any scripting - simply put
a link to your "private" page on the page you want it linked from,
but don't link it from anywhere else. If the URL isn't known, nobody
is going to guess it... or am I missing something?!

If you're heel bent on using a script, here ya go:

----------------------------------------------------

#!/usr/bin/perl

if ($ENV{'HTTP_REFERER'} eq 'http://domain.com/referring_page.html') {
print "Location: http://domain.com/private_page.html\n\n";
}
else {
print "Location: http://domain.com/error_page.html\n\n";
}




Reply to this message

Required Details
Your name:
Subject:

Optional Details
Home page title:
Home page URL:
Email:
(if you'd like to receive
automatic replies by email)

Your Message