Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Checking Referring Page?

by Spidy (Chaplain)
on Dec 07, 2005 at 17:31 UTC ( [id://514922]=note: print w/replies, xml ) Need Help??


in reply to Re: Checking Referring Page?
in thread Checking Referring Page?

Apparently my server doesn't do $ENV{HTTP_REFERER}...can't seem to find it in my %ENV test, anyways.

Replies are listed 'Best First'.
Re^3: Checking Referring Page?
by Your Mother (Archbishop) on Dec 07, 2005 at 22:17 UTC

    Don't forget there is no referrer if you're loading a page directly. You have to have clicked through something. Try putting a dummy link to stay in your CGI and see.

    use CGI qw(:standard); print header(), start_html(); # <-- update to run/test w/o changes print a({-href=>url(1)}, "self-check: ", referer() || 'no referrer');

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://514922]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2024-04-19 06:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found