JIC: did you try $ENV{HTTP_REFERER}?
In reply to Re: Perl Dilema by dmitri in thread Tracking website visitors by Anonymous Monk