Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default HTTP_REFERER

    Does php support this? HTTP_REFERER
    or simply cgi and ssi only?

    -
    Louie
    Louie Miranda Guest

  2. Similar Questions and Discussions

    1. 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...
    2. IE6SP1/HTTP_REFERER
      IE6SP1 does NOT send HTTP_REFERER. Does anyone know of a workaround for this? Thanks -Wes
    3. Can http_referer be spoofed
      Is there a way to spoof the referer? One security measure that I want to implement is checking to make sure that a request came from a page on my...
    4. [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?...
    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: HTTP_REFERER

    Hi,

    It does support any HTTP information, and since
    HTTP_REFERER is part of the HTTP spec. it is supported.
    You can find it in the $_SERVER variable.
    FYI: The referer is not a reliable information.

    Cheers,
    Catalin


    "Louie Miranda" <louie@axishift.ath.cx> wrote in message
    news:019901c378f6$6ef6c5a0$020119ac@admwebdevws...
    > Does php support this? HTTP_REFERER
    > or simply cgi and ssi only?
    >
    > -
    > Louie
    Catalin Trifu Guest

  4. #3

    Default HTTP_REFERER

    Hi all,

    Is there a way to get the path of the script that called the current script
    from the interpeter instead of from the HTTP_REFERER variable?

    Thanks
    Tricia

    Motherofperls@aol.com Guest

  5. #4

    Default Re: HTTP_REFERER

    >>>>> "Motherofperls" == Motherofperls <Motherofperls@aol.com> writes:

    Motherofperls> Is there a way to get the path of the script that called the current script
    Motherofperls> from the interpeter instead of from the HTTP_REFERER variable?

    If this is a CGI question, it's best asked in the CGI mailing list.

    --
    Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
    <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
    Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
    See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
    Randal L. Schwartz Guest

  6. #5

    Default http_referer

    I have a form that submits to a 2nd page with a SQL insert query. The
    database has a Primary Key that is an identity field (autonumber).

    If I submit the form it inserts the record, if I refresh the insert page
    then it inserts another record. Also if I open the insert page up directly,
    it will insert a record. I would like to use the http_referer and an IF
    statement to only allow the query to run if data has been submitted from the
    form page (wo_main.asp). Can anyone help me with this? Thanks!

    Darren
    MCP


    Scrappy Guest

  7. #6

    Default Re: http_referer

    On Tue, 24 Feb 2004 19:59:23 GMT, "Scrappy"
    <celtics@lan-specialist.com> wrote:
    >I have a form that submits to a 2nd page with a SQL insert query. The
    >database has a Primary Key that is an identity field (autonumber).
    >
    >If I submit the form it inserts the record, if I refresh the insert page
    >then it inserts another record. Also if I open the insert page up directly,
    >it will insert a record. I would like to use the http_referer and an IF
    >statement to only allow the query to run if data has been submitted from the
    >form page (wo_main.asp). Can anyone help me with this? Thanks!
    Basic syntax would be something like:

    Referer = Request.ServerVariables("HTTP_REFERER")

    Then compare that to what you want. Though I'm guessing you're using
    a Request.Querystring and perhaps want a Request.Form using a POST
    instead. You can also use session variables, cookies or a number of
    methods to handle this. Post back to the form page or use a
    Javascript to check form submission, etc.

    Jeff
    Jeff Cochran Guest

  8. #7

    Default Re: http_referer

    "Jeff Cochran" <jcochran.nospam@naplesgov.com> wrote in message
    news:403bbe55.1125368814@msnews.microsoft.com...
    > On Tue, 24 Feb 2004 19:59:23 GMT, "Scrappy"
    > <celtics@lan-specialist.com> wrote:
    >
    > >I have a form that submits to a 2nd page with a SQL insert query. The
    > >database has a Primary Key that is an identity field (autonumber).
    > >
    > >If I submit the form it inserts the record, if I refresh the insert page
    > >then it inserts another record. Also if I open the insert page up
    directly,
    > >it will insert a record. I would like to use the http_referer and an IF
    > >statement to only allow the query to run if data has been submitted from
    the
    > >form page (wo_main.asp). Can anyone help me with this? Thanks!
    >
    > Basic syntax would be something like:
    >
    > Referer = Request.ServerVariables("HTTP_REFERER")
    >
    > Then compare that to what you want. Though I'm guessing you're using
    > a Request.Querystring and perhaps want a Request.Form using a POST
    > instead. You can also use session variables, cookies or a number of
    > methods to handle this. Post back to the form page or use a
    > Javascript to check form submission, etc.
    >
    > Jeff
    A note on the use of HTTP_REFERER -- Norton Personal Firewall (and others)
    by default prevent the passing of its value.



    McKirahan 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