in reply to $ENV{HTTP_REFERER}; not showing up

Was that you who posted this node 310630 before as Anonymous Monk? Looks like you haven't digested anything yet from that previous post.

You still have the ugly if (exists...) ... block untouched. Won't it be better if you just replace the entire block of code with -
$list{ $location || 'Unknown' }++;


And I second davido's suggestion above on never to trust/rely completely the value set in HTTP_REFERER. It could even be faked.

Replies are listed 'Best First'.
Re: Re: $ENV{HTTP_REFERER}; not showing up
by sulfericacid (Deacon) on Dec 09, 2003 at 16:30 UTC
    I just looked at that node you provided, I must say it looks like my code :) I rarely ever post as anonymous and I don't remember making it, but it was probably mine.

    I know this isn't going to always work and if it does, the data won't be reliable. This is just to be a fun little script to try to make an attempt to figure out where my traffic is coming from.

    I am almost possitive there is a logic error, like someone said above. I'll take a quicker glance to see if I can figure it out, thanks for your help everyone!



    "Age is nothing more than an inaccurate number bestowed upon us at birth as just another means for others to judge and classify us"

    sulfericacid