[thelist] cgi redirection based on referrer

Anthony Baratta Anthony at Baratta.com
Tue Jun 12 23:24:31 CDT 2001


At 09:07 PM 6/12/2001, you wrote:
>At 08:48 PM 6/12/2001, you wrote:
>
>>How can I make this cgi to redirect depending on the URL referrer, for
>>example, I'd all my visitors from google to be taken to some directory?
>
>$referer = $ENV{'REFERER'};
>if (index($referer,"google") > 0) {
>    print "Location: http://www.go.here\n\n";
>}

Sorry....

it should be:

$ENV{'HTTP_REFERER'}


---
Anthony Baratta
President
Keyboard Jockeys





More information about the thelist mailing list