problems with Request.UrlReferrer

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default problems with Request.UrlReferrer

    i have found a problem when using Request.UrlReferrer. if i call the page
    using a javascript function, the referrer is null...
    i need to call a page and open it on a specific browser size, with no
    toolbar, menu, etc. and also need to check that the call comes from a
    specific page.
    how to make request.UrlReferrer work?



    Harley Guest

  2. Similar Questions and Discussions

    1. install Apache::Request problems.
      I've been trying to install a bunch of perl modules all day using CPAN. I've come to install Apache::Request and it seems to go through fine up...
    2. Problems to install Apache::Request
      Hi I am not very experienced with Perl. I try to install RT and part of it is to install the module Apache::Request. While all other modules...
    3. UrlReferrer issue
      Hi all! I am developing an intranet app and have a problem with the Request.UrlReferrer object. I use it to keep a "linkstack" of all pages...
    4. Request.UrlReferrer and SSL certificate
      I have a website that checks the Request.UrlReferrer variable. This routine was working ok, until we created a ssl certificate on the server. Now,...
    5. Request.UrlReferrer is nothing
      I have a website that checks for the correct referer and it was working fine until we implemented and ssl certificate (https). Now, the...
  3. #2

    Default Re: problems with Request.UrlReferrer

    "Harley" <harleyobrien%40hotmail.com> wrote in message
    news:eOC1yHrXDHA.3444@tk2msftngp13.phx.gbl...
    > i have found a problem when using Request.UrlReferrer. if i call the page
    > using a javascript function, the referrer is null...
    > i need to call a page and open it on a specific browser size, with no
    > toolbar, menu, etc. and also need to check that the call comes from a
    > specific page.
    > how to make request.UrlReferrer work?
    What makes you think it's broken?

    If you want the page to know which page it came from, even when invoked by
    your JavaScript function, then send the URL in a query string.
    --
    John Saunders
    Internet Engineer
    [email]john.saunders@surfcontrol.com[/email]


    John Saunders Guest

  4. #3

    Default Re: problems with Request.UrlReferrer

    but theres an html header that automatically gives you that... the
    Request.Referrer function read the header and exposes its value...
    in my case, i need to know the url of the referrer because the system will
    only allow calls from specific URLs. if you pass it as a parameter manually,
    the security is useless.
    everything work ok using standard <A HREF> but a call using javascripts
    windows.open gives a blank referrer.


    "John Saunders" <john.saunders@surfcontrol.com> wrote in message
    news:%23W9AKSrXDHA.2484@TK2MSFTNGP09.phx.gbl...
    > "Harley" <harleyobrien%40hotmail.com> wrote in message
    > news:eOC1yHrXDHA.3444@tk2msftngp13.phx.gbl...
    > > i have found a problem when using Request.UrlReferrer. if i call the
    page
    > > using a javascript function, the referrer is null...
    > > i need to call a page and open it on a specific browser size, with no
    > > toolbar, menu, etc. and also need to check that the call comes from a
    > > specific page.
    > > how to make request.UrlReferrer work?
    >
    > What makes you think it's broken?
    >
    > If you want the page to know which page it came from, even when invoked by
    > your JavaScript function, then send the URL in a query string.
    > --
    > John Saunders
    > Internet Engineer
    > [email]john.saunders@surfcontrol.com[/email]
    >
    >

    Harley Guest

  5. #4

    Default Re: problems with Request.UrlReferrer

    "Harley" <harleyobrien%40hotmail.com> wrote in message
    news:eJJD71rXDHA.2200@TK2MSFTNGP09.phx.gbl...
    > but theres an html header that automatically gives you that...
    Yes, but are you sure that this header was supplied? Perhaps it wasn't.
    > the
    > Request.Referrer function read the header and exposes its value...
    > in my case, i need to know the url of the referrer because the system will
    > only allow calls from specific URLs. if you pass it as a parameter
    manually,
    > the security is useless.
    The security is useless anyway! The header comes from the client as well.
    Surely if the client can spoof the querystring, then the client can spoof
    the Referrer header.

    You should find another security method.

    --
    John Saunders
    Internet Engineer
    [email]john.saunders@surfcontrol.com[/email]


    John Saunders Guest

  6. #5

    Default Re: problems with Request.UrlReferrer

    sure, youre right the client can spoof with the header... the check is not
    supposed to provide a tight security, but an additional annoyance to
    unauthorized calls.
    i though that window.open ('www.server.com/page.htm') would create a regular
    normal http header, including the referrer. am i wrong?

    "John Saunders" <john.saunders@surfcontrol.com> wrote in message
    news:ehas8CsXDHA.1384@TK2MSFTNGP10.phx.gbl...
    > "Harley" <harleyobrien%40hotmail.com> wrote in message
    > news:eJJD71rXDHA.2200@TK2MSFTNGP09.phx.gbl...
    > > but theres an html header that automatically gives you that...
    >
    > Yes, but are you sure that this header was supplied? Perhaps it wasn't.
    >
    > > the
    > > Request.Referrer function read the header and exposes its value...
    > > in my case, i need to know the url of the referrer because the system
    will
    > > only allow calls from specific URLs. if you pass it as a parameter
    > manually,
    > > the security is useless.
    >
    > The security is useless anyway! The header comes from the client as well.
    > Surely if the client can spoof the querystring, then the client can spoof
    > the Referrer header.
    >
    > You should find another security method.
    >
    > --
    > John Saunders
    > Internet Engineer
    > [email]john.saunders@surfcontrol.com[/email]
    >
    >

    Harley Guest

  7. #6

    Default Re: problems with Request.UrlReferrer

    "Harley" <harleyobrien%40hotmail.com> wrote in message
    news:OtIHg9tXDHA.2284@TK2MSFTNGP10.phx.gbl...
    > sure, youre right the client can spoof with the header... the check is not
    > supposed to provide a tight security, but an additional annoyance to
    > unauthorized calls.
    > i though that window.open ('www.server.com/page.htm') would create a
    regular
    > normal http header, including the referrer. am i wrong?
    If you look at the header, I believe you'll find that you're wrong.
    --
    John Saunders
    Internet Engineer
    [email]john.saunders@surfcontrol.com[/email]


    John Saunders 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