Professional Web Applications Themes

[PHP] HTTP_REFERER - PHP Development

On Fri, Sep 12, 2003 at 09:11:09AM +0200, Catalin Trifu wrote: : : "Louie Miranda" <louieaxishift.ath.cx> wrote: : > : > Does php support this? HTTP_REFERER : > or simply cgi and ssi only? : : 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. Several Windoze firewalls also filter out HTTP_REFERER. -- Eugene Lee [url]http://www.coxar.pwp.blueyonder.co.uk/[/url]...

  1. #1

    Default Re: [PHP] Re: HTTP_REFERER

    On Fri, Sep 12, 2003 at 09:11:09AM +0200, Catalin Trifu wrote:
    :
    : "Louie Miranda" <louieaxishift.ath.cx> wrote:
    : >
    : > Does php support this? HTTP_REFERER
    : > or simply cgi and ssi only?
    :
    : 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.

    Several Windoze firewalls also filter out HTTP_REFERER.


    --
    Eugene Lee
    [url]http://www.coxar.pwp.blueyonder.co.uk/[/url]
    Eugene Lee Guest

  2. #2

    Default Re: [PHP] Re: HTTP_REFERER

    On Fri, Sep 12, 2003 at 03:53:22PM +0800, Louie Miranda wrote:
    : "Eugene Lee" mentioned:
    : >
    : > Several Windoze firewalls also filter out HTTP_REFERER.
    :
    : what can you suggest, im trying to do a referer email program on a website
    : and i think HTTP_REFERER will be my first approach, but limited on some
    : browsers and firewall.
    :
    : What can you suggest for a dynamic page?

    It depends on what exactly you are trying to accomplish. Are you trying
    to restrict access to your email program based on the HTTP_REFERER which
    may be real or may be forged?
    Eugene Lee Guest

  3. #3

    Default Re: [PHP] Re: HTTP_REFERER

    no, im making a "send this page to a friend program"
    when the users click the button a small pop-up window will come out and the
    http_referer will work and catch the previous page.

    -
    Louie

    ----- Original Message -----
    From: "Eugene Lee" <list-phpfsck.net>
    To: <php-generallists.php.net>
    Sent: Friday, September 12, 2003 4:15 PM
    Subject: Re: [PHP] Re: HTTP_REFERER

    > On Fri, Sep 12, 2003 at 03:53:22PM +0800, Louie Miranda wrote:
    > : "Eugene Lee" mentioned:
    > : >
    > : > Several Windoze firewalls also filter out HTTP_REFERER.
    > :
    > : what can you suggest, im trying to do a referer email program on a
    website
    > : and i think HTTP_REFERER will be my first approach, but limited on some
    > : browsers and firewall.
    > :
    > : What can you suggest for a dynamic page?
    >
    > It depends on what exactly you are trying to accomplish. Are you trying
    > to restrict access to your email program based on the HTTP_REFERER which
    > may be real or may be forged?
    >
    > --
    > PHP General Mailing List (http://www.php.net/)
    > To unsubscribe, visit: http://www.php.net/unsub.php
    >
    Louie Miranda Guest

  4. #4

    Default Re: [PHP] Re: HTTP_REFERER

    On Fri, Sep 12, 2003 at 04:21:16PM +0800, Louie Miranda wrote:
    : Eugene Lee mentioned:
    : > On Fri, Sep 12, 2003 at 03:53:22PM +0800, Louie Miranda wrote:
    : > : "Eugene Lee" mentioned:
    : > : >
    : > : > Several Windoze firewalls also filter out HTTP_REFERER.
    : > :
    : > : what can you suggest, im trying to do a referer email program on a
    : > : website and i think HTTP_REFERER will be my first approach, but
    : > : limited on some browsers and firewall.
    : >
    : > It depends on what exactly you are trying to accomplish.
    :
    : no, im making a "send this page to a friend program"
    : when the users click the button a small pop-up window will come out
    : and the http_referer will work and catch the previous page.

    Since it's a button, you could always send the SCRIPT_FILENAME to the
    pop-up window via a GET or POST method.
    Eugene Lee Guest

  5. #5

    Default Re: [PHP] Re: HTTP_REFERER

    SCRIPT_FILENAME, sorry but i didnt get this part.


    ----- Original Message -----
    From: "Eugene Lee" <list-phpfsck.net>
    To: <php-generallists.php.net>
    Sent: Friday, September 12, 2003 4:51 PM
    Subject: Re: [PHP] Re: HTTP_REFERER

    > On Fri, Sep 12, 2003 at 04:21:16PM +0800, Louie Miranda wrote:
    > : Eugene Lee mentioned:
    > : > On Fri, Sep 12, 2003 at 03:53:22PM +0800, Louie Miranda wrote:
    > : > : "Eugene Lee" mentioned:
    > : > : >
    > : > : > Several Windoze firewalls also filter out HTTP_REFERER.
    > : > :
    > : > : what can you suggest, im trying to do a referer email program on a
    > : > : website and i think HTTP_REFERER will be my first approach, but
    > : > : limited on some browsers and firewall.
    > : >
    > : > It depends on what exactly you are trying to accomplish.
    > :
    > : no, im making a "send this page to a friend program"
    > : when the users click the button a small pop-up window will come out
    > : and the http_referer will work and catch the previous page.
    >
    > Since it's a button, you could always send the SCRIPT_FILENAME to the
    > pop-up window via a GET or POST method.
    >
    > --
    > PHP General Mailing List (http://www.php.net/)
    > To unsubscribe, visit: http://www.php.net/unsub.php
    >
    Louie Miranda Guest

  6. #6

    Default Re: [PHP] Re: HTTP_REFERER

    On Mon, Sep 15, 2003 at 07:58:25AM +0800, Louie Miranda wrote:
    : Eugene Lee mentioned:
    : > On Fri, Sep 12, 2003 at 04:21:16PM +0800, Louie Miranda wrote:
    : > : Eugene Lee mentioned:
    : > : > On Fri, Sep 12, 2003 at 03:53:22PM +0800, Louie Miranda wrote:
    : > : > : "Eugene Lee" mentioned:
    : > : > : >
    : > : > : > Several Windoze firewalls also filter out HTTP_REFERER.
    : > : > :
    : > : > : what can you suggest, im trying to do a referer email program on a
    : > : > : website and i think HTTP_REFERER will be my first approach, but
    : > : > : limited on some browsers and firewall.
    : > : >
    : > : > It depends on what exactly you are trying to accomplish.
    : > :
    : > : no, im making a "send this page to a friend program"
    : > : when the users click the button a small pop-up window will come out
    : > : and the http_referer will work and catch the previous page.
    : >
    : > Since it's a button, you could always send the SCRIPT_FILENAME to the
    : > pop-up window via a GET or POST method.
    :
    : SCRIPT_FILENAME, sorry but i didnt get this part.

    On URL A, $_SERVER['SCRIPT_FILENAME'] reports URL A. And on that page,
    if you click on a link that takes you to URL B, then in URL B you'll get
    $_SERVER['HTTP_REFERER'] that also says URL A.
    Eugene Lee Guest

Similar Threads

  1. cgi.http_referer problem
    By dijana1081 in forum Macromedia ColdFusion
    Replies: 2
    Last Post: November 21st, 07:18 PM
  2. Can http_referer be spoofed
    By Buddy Ackerman in forum ASP.NET Security
    Replies: 1
    Last Post: March 3rd, 03:58 AM
  3. http_referer
    By Louie Miranda in forum ASP Database
    Replies: 6
    Last Post: February 24th, 09:48 PM
  4. #10027 [Com]: HTTP_REFERER
    By paul at bladetechnology dot co dot uk in forum PHP Development
    Replies: 0
    Last Post: October 14th, 06:01 PM
  5. Getting HTTP_REFERER
    By lordpuma in forum PHP Development
    Replies: 0
    Last Post: July 21st, 02:41 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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