Counter - referrer shows my site. Multiple IP's shown when getting page.

I have a counter with PHP/MySQL/JavaScript on every page. Here is how I call the script:

<script type="text/javascript">
  var refer=escape(document.referrer);
  var dim=screen.width + 'x' + screen.height;
  var pg = window.location.pathname;
  document.write('<img src="/count.php?pg='+pg+'&dim='+dim+'&refer='+refer+'">');
</script>
<noscript>
  <img src="/count.php">
</noscript>

For some of my statistics I see the refer being from my site. I looked at the apache logs for the IP's that show this and I see something like this:

207.200.116.201 - - [08/May/2005:09:58:15 -0700] "GET /signup.htm HTTP/1.0" 304 -
207.200.116.68 - - [08/May/2005:09:58:17 -0700] "GET /images/styles.css HTTP/1.0" 200 1195
207.200.116.12 - - [08/May/2005:09:58:18 -0700] "GET /images/logo.gif HTTP/1.0" 304 -
207.200.116.6 - - [08/May/2005:09:58:18 -0700] "GET /images/bg.gif HTTP/1.0" 200 85
207.200.116.6 - - [08/May/2005:09:58:18 -0700] "GET /images/verification_seal.gif HTTP/1.1" 304 -
207.200.116.67 - - [08/May/2005:09:58:18 -0700] "GET /images/shadow.gif HTTP/1.0" 304 -
207.200.116.200 - - [08/May/2005:09:58:19 -0700] "GET /images/dot.gif HTTP/1.0" 304 -
207.200.116.69 - - [08/May/2005:09:58:19 -0700] "GET /images/horizontal_solution_PP.gif HTTP/1.0" 304 -
207.200.116.132 - - [08/May/2005:09:58:19 -0700] "GET /count.php?pg=/signup.htm&dim=1024x768&refer=http%3A//www.google.com/...
207.200.116.134 - - [08/May/2005:09:59:03 -0700] "GET /demo.htm HTTP/1.0" 200 7385
207.200.116.139 - - [08/May/2005:09:59:05 -0700] "GET /count.php?pg=/demo.htm&dim=1024x768&refer=http%3A//www.my_site.com/signup.htm HTTP/1.0" 200 35
207.200.116.199 - - [08/May/2005:09:59:23 -0700] "GET /stats.php HTTP/1.0" 200 10289
207.200.116.136 - - [08/May/2005:09:59:24 -0700] "GET /count.php?pg=/stats.php&dim=1024x768&refer=http%3A//www.my_site.com/demo.htm HTTP/1.0" 200 35
207.200.116.198 - - [08/May/2005:09:59:38 -0700] "GET /tutorials/ HTTP/1.0" 200 11048
207.200.116.201 - - [08/May/2005:09:59:39 -0700] "GET /count.php?pg=/tutorials/&dim=1024x768&refer=http%3A//www.my_site.com/stats.php HTTP/1.1" 200 35

These all appear to be from the same user, but they have different IP's. You'll notice that at the exact same second 4 of the images of the page were requested but they say they're from different IP's.

Any ideas how to fix it to not get duplicate entries that say they came from my site?
LVL 1
itcdrAsked:
Who is Participating?
 
mensuckCommented:
Hi

You are geting this because the user is sitting behind a proxy server. The proxy server makes a request for the page then it grabs all the image links and passes those links to other proxy servers in their server farm, and they come and grab the images to add to their proxy cache just in case another user visits your page via their proxy server, they do this to save badwidth and have pages load faster by storing the images in thier cache!

NET RANGE: 207.200.116.* -> AOL/NETSCAPE DAILUP USER!

Just another good reason to hate AOL9s) way of doing things!

Suzanne

0
 
majestiqCommented:
what is the url of the page that this script is one?
0
 
itcdrAuthor Commented:
The PHP script for the counter is /count.php and the javascript is on every page of the site that calls it as an image. Is that what you're asking?
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
itcdrAuthor Commented:
Thanks for the explanation. That makes sense.

Now what should I do to fix it?
0
 
jdpipeCommented:
A little BTW comment on this... when I last checked AOL during a development process, I found that the images from my website, as well as being cached had also been converted to a proprietary AOL file format, presumably so that they could be 'compressed further'. I think their file format is called PIC. Interesting that they would go to all that bother, isn't it. Brings to mind possible intellectual property/copyright issues too, a la Google Images.

JP
0
 
itcdrAuthor Commented:
Now that we know what is causing the problem, how do we fix it?
0
 
itcdrAuthor Commented:
Any ideas how I can get the php counter to check for this?
0
 
hujiCommented:
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.
I will leave the following recommendation for this question in the Cleanup topic area:
Accept: mensuck

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

Huji
EE Cleanup Volunteer
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.