cgi.http_referer problem

Ask a Question related to Macromedia ColdFusion, Design and Development.

  1. #1

    Default cgi.http_referer problem

    I am using this code for some web security :
    <cfif NOT len(cgi.http_referer)
    OR NOT findnocase(cgi.http_host,cgi.http_referer)>
    <h3>Post action aborted!</h3>
    <br />
    <p>Post from foreign host detected</p>
    <cfabort>
    </cfif>

    The problem that I am having isn't the code it is that one users
    cgi.http_referer is always blank even when it shouldn't be. I know that she is
    refering from a page from the application but when we dump the variable it's
    always blank. What could be the problem. Is it her browser maybe?


    dijana1081 Guest

  2. Similar Questions and Discussions

    1. http_referer
      Does php support this? HTTP_REFERER or simply cgi and ssi only? - Louie
    2. #10027 [Com]: HTTP_REFERER
      ID: 10027 Comment by: paul at bladetechnology dot co dot uk Reported By: brad at youreshop dot com Status: ...
    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. $_SERVER['HTTP_REFERER']
      "ease" <ease@wanadoo.fr> wrote in message news:bgjk31$40l$1@news-reader4.wanadoo.fr... Do you control pages that embed your php? If yes then you...
    5. 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...
  3. #2

    Default Re: cgi.http_referer problem

    It is not reliable to use http referer. Some browsers do not send it. Some
    firewalls (i've seen norton do it) block it. Its best to use a session variable
    or cookie to see if a user has already been on your site.

    desprato Guest

  4. #3

    Default cgi.http_referer problem (blank)

    The solution for me was realizing that my referring file was local, on my drive, not from a server. Used this.

    <cfoutput>
    <cfdump var="#cgi#">

    #cgi.HTTP_REFERER#

    </cfoutput>
    RandNotAyn 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