|
-
Sep 27th, 2000, 12:54 PM
#1
Thread Starter
Member
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
-
Sep 27th, 2000, 12:58 PM
#2
Monday Morning Lunatic
It's all about referrals. When you click on the link, the browser adds another header, like:
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
-
Sep 27th, 2000, 01:06 PM
#3
Thread Starter
Member
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
-
Oct 2nd, 2000, 09:01 PM
#4
Thread Starter
Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|