Hi, I'm trying to get the http referer, but as yet, have not been able to. So far I have tried these: $ENV{HTTP_REFERER} $ENV{HTTP_REFERRER} As yet, I have only been able to get my address from the variable, or nothing. Even when I follow a link pointing to my site from another site. How in the world do you get the referer address via perl??? I'm wanting this so that I can see where visitors are comming from. If there accessing the site directly, I would expect the the veriable to be blank, but if there following a link from another site, then there should be something in the variable, and that should be there refering site, not my site. Sure, one can fake this, but I doubt all sites (even google) would be faking this. Perhaps there is simply some other veriable that I'm over looking.

In reply to Getting the http referer by Delusional

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.