Firefox and cgi.http_referer

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Firefox and cgi.http_referer

    Weird behavior in Firefox:
    to start -> I click from a [url]www.acmecompany.com[/url] site to my company's site
    ([url]www.mycompany.com/page.cfm[/url]).

    First bizarre thing that happens: the link on [url]www.acmecompany.com[/url] to my site
    is [url]www.mycompany.com/page.cfm[/url], but when you get there it resets itself to
    [url]www.mycompany.com//page.cfm[/url]. Notice the two forward slashes. I can't find the
    cause of this anywhere....it's really weird.

    Next: I can't access the cgi.http_referer information unless I click back to
    the company's site and then click on the link again! So, first time the
    len(cgi.http_referer) = 0, click back button and then click link again (and now
    I'm assuming because the session is established, because the problem goes away
    for twenty minutes, which is the length the session is set to) and the
    cgi.http_referer variables is there and populated with
    'www.acmecompany.com/somepage.cfm'.

    Anyone even heard of this with Firefox?

    Thanx,
    Muwa

    Muwa Guest

  2. Similar Questions and Discussions

    1. IE6SP1/HTTP_REFERER
      IE6SP1 does NOT send HTTP_REFERER. Does anyone know of a workaround for this? Thanks -Wes
    2. http_referer
      Does php support this? HTTP_REFERER or simply cgi and ssi only? - Louie
    3. [PHP] HTTP_REFERER
      On Fri, Sep 12, 2003 at 09:11:09AM +0200, Catalin Trifu wrote: : : "Louie Miranda" <louie@axishift.ath.cx> wrote: : > : > Does php support this?...
    4. Getting HTTP_REFERER
      I am having no end of bad luck getting the refering page returned, the issue may be that I am doing redirects using javascript if a document is not...
    5. aspmail and HTTP_REFERER
      I like to make a "Tell a Firends" option on my site. There I like to insert the form in to my databas and then send the mail. -First: I...
  3. #2

    Default Re: Firefox and cgi.http_referer

    I personally haven't heard of this, but I haven't been looking for it either.
    Just out of curiousity, are you relying on the referrer for anything important?
    It's easily spoofed and some browsers, like opera, give you the option to never
    pass the referrer.

    Mike Greider Guest

  4. #3

    Default Re: Firefox and cgi.http_referer

    Yeah, lots of ways to spoof that. But, it's still a good way, given the alternatives. And, given the nature of information that is being protected, not really that dangerous to have it out there.
    Muwa Guest

  5. #4

    Default Re: Firefox and cgi.http_referer

    Perhaps you can explain more what you are trying to do? I'd be happy to provide
    some additional suggestions. Personally, I think it's best practice not to do
    anything that relies on variables that are outside your control, or can be
    easily modified. The referrer is one of those.

    Mike Greider Guest

  6. #5

    Default Re: Firefox and cgi.http_referer

    the user passes an ID in their URL and I check the referering URL based on the
    ID they pass. I store the allowed URLs in a database, that are associated with
    that ID.

    If I find the correct url passed in cgi.http_referer, then it works, if not, I
    throw an error.

    For some reason this site (and only this site) won't work. But, only their
    site won't work in Firefox. It works fine in IE.

    One thing I noticed was that they are linking to a site that is forwarded via
    Verisign for us and the forward we had setup had a trailing forward slash (see
    the first problem in the opening post), so when I removed the trailing forward
    slash, that fixed problem #1. I hoped that would fix the second problem, but
    it did not.

    I'm still at a loss as to why the cgi.http_referer var is not there. All the
    other CGI scoped variables are available....it's tres bizarre.

    Thanx for any ideas/thoughts/help you may have,
    Muwa

    Muwa Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139