HTTP Referrer questions

Discussion in 'ASP General' started by Chumley the Walrus, Jul 12, 2004.

  1. A week or so ago, I needed to find the HTTP_REFERER environment
    variable to check and see if a user is coming from a certain website:


    If Request.ServerVariables("HTTP_REFERER")_
    = "http://localhost/mydir/page1.aspx" then
    response.write "Click on a menu choice"
    else
    response.write "check back later
    end if

    I have a page nested in an IFRAME (for example framepage1.aspx or
    ..asp), and I need to check to see if a user is coming to (not coming
    from ) a certain page where the framepage1.aspx is (the
    framepage1.aspx could appear in not only page1.aspx, but page2.aspx ,
    or page3). I'm not sure how to accomplish this given that the
    HTTP_REFERER checks on address only incoming.

    Thanks
    Chum
    Chumley the Walrus, Jul 12, 2004
    #1
    1. Advertising

  2. Chumley the Walrus

    Joerg Jooss Guest

    Chumley the Walrus wrote:
    > A week or so ago, I needed to find the HTTP_REFERER environment
    > variable to check and see if a user is coming from a certain website:
    >
    >
    > If Request.ServerVariables("HTTP_REFERER")_
    > = "http://localhost/mydir/page1.aspx" then
    > response.write "Click on a menu choice"
    > else
    > response.write "check back later
    > end if
    >
    > I have a page nested in an IFRAME (for example framepage1.aspx or
    > .asp), and I need to check to see if a user is coming to (not coming
    > from ) a certain page where the framepage1.aspx is (the
    > framepage1.aspx could appear in not only page1.aspx, but page2.aspx ,
    > or page3). I'm not sure how to accomplish this given that the
    > HTTP_REFERER checks on address only incoming.


    Simply forget about referer if you're talking about an Internet based
    application. Any old proxy could change that header.


    Cheers,
    --
    Joerg Jooss
    Joerg Jooss, Jul 17, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. SomeGroup

    HTTP Referrer header

    SomeGroup, Jul 16, 2006, in forum: HTML
    Replies:
    6
    Views:
    21,203
    varmansk
    Nov 27, 2008
  2. Joey Martin

    Need webpage only from HTTP-REFERRER

    Joey Martin, Jul 8, 2003, in forum: ASP General
    Replies:
    1
    Views:
    149
    Ray at
    Jul 8, 2003
  3. Joe
    Replies:
    5
    Views:
    197
    Jano Svitok
    Sep 21, 2007
  4. Peder Ydalus

    setting http-referrer using LWP::Simple?

    Peder Ydalus, Jan 27, 2004, in forum: Perl Misc
    Replies:
    1
    Views:
    158
  5. Suman

    HTTP Referrer header

    Suman, Jul 16, 2006, in forum: Javascript
    Replies:
    1
    Views:
    103
    Randy Webb
    Jul 16, 2006
Loading...

Share This Page