October 16th, 2000, 10:06 PM
I am developing a multi-affiliate counter server, so I want to record the referrer site when user visit one of our members.
There are four entity: viewer,referrer_site,member_site,ours(server site).
when viewer visit member_site from referrer_site, the member_site send a request of recording this visit to ours.
I know $HTTP_REFERER, but I think it will be member_site becouse the request to ours is from our member_site.
How can I get the referrer_site's host name?
October 17th, 2000, 12:22 AM
you'll need the script on the member_site to capture the referrer_site, then send it to your server.
October 26th, 2000, 09:55 PM
I looked through JS mannul and found "history.previous" may help.
But what if viewer right click and choose "open in new window"?
October 26th, 2000, 11:45 PM
Eh, it's document.referer in JS, and it works in a new window as well.