It appears I should be more clear. 'John' has a site where people view other sites inside a frame. It is a traffic exchange. His members view other people's sites in exchange for them to view theirs.
I have a promo site. I am hired by traffic exchange owners, like John, to do this promo where my own list of members go to John's site and view sites every so many seconds.
My promo page is inserted into the random views on John's site. My members stumble across my promo page as they are viewing other sites, they enter their special id and get credit for a random drawing, as a reward for being active at John's site.
Why I need to know the referring site is because I do not want people to just drop in the link to my promo page into their browser where they can then claim their ticket for the drawing without actively surfing John's site, who paid me for the promo.
By being able to, without fail, resolve the referring site, I can ensure that people are not cheating John by not not actually doing the action required to get into the drawing and are likely just dropping in the link to my promo page into their browser.
I host multiple promos at the same time, so it is very important that I can resolve the referring site in any way shape or form.
I have been using the HTTP_REFERER to check if the site calling my promo page is valid. But since IE by default excludes this info, and other browsers can turn this off, and even spoof this var, I need a way to absolutely know that the site calling my page is one of my customers, so my customers are not being cheated, and also, so I am not losing the IE users.
This is why I am looking for a php function, or method, to determine the referring site's IP address that is calling my promo page. If not by IP then any way that I can achieve my goal.