Results 1 to 4 of 4

Thread: unusual phenomenon

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2000
    Location
    Hong Kong
    Posts
    62
    Hi,

    Sometimes I encountered this phenomenon when browsing through the net:

    In sample1.htm there is a link <a href='http://www.xxx.com/xxx/abc.asp?id_1=123&id_2=456'> . If I click this link from the page, I can get the query result I want. But if I copy this link and paste it back to the browser's address bar and press enter, it will bring me back to the homepage. How can this happen?

    Thanks!
    Please Visit My WebCam!!
    http://www.hmcheung.com

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    It's all about referrals. When you click on the link, the browser adds another header, like:
    Code:
    HTTP-Referrer: http://www.xxx.com/xxx/sample1.htm
    The ASP checks for this, so that it knows what page it came from. If it's not there, it redirects you to the homepage. It's basically a security mechanism to stop people from hijacking your scripts.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3

    Thread Starter
    Member
    Join Date
    Jun 2000
    Location
    Hong Kong
    Posts
    62

    thanks

    Thanks!
    where can I find some more information about referral page?
    I'm very intested in this security measure. :>
    Please Visit My WebCam!!
    http://www.hmcheung.com

  4. #4

    Thread Starter
    Member
    Join Date
    Jun 2000
    Location
    Hong Kong
    Posts
    62

    how about cookie?

    is it possible that this phenomenon is done by setting cookies?
    Please Visit My WebCam!!
    http://www.hmcheung.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width