Top referer site does not show urls which contain the domain name somewhere in the url

Created on 9 April 2009, over 15 years ago
Updated 30 March 2024, 5 months ago

I noticed this while working on #394560: DBTNG: Statistics module and I tried to generate some referers to test my query.

I have a d7 site installed locally at "http://d7". I copied a file which contained links to that site to another virtual host, named it d7.html and clicked on the links. However, nothing showed up because "d7" is excluded from the referer list. This could also happen in the real world, if for example someone writes an article abour your new site and the URL contains "yourdomain.com". All referers from this site will not show up in the list.

A possible fix should be easy, we could exlude "'://' . $_SERVER['HTTP_HOST']" instead. This should still work for different protocols and so on and would only exlude referers which really contain the hostname at the beginning of the query.

Is there anything that I don't see? :) A possible set-up that wouldn't work with that exclude string?

No patch yet, will attach one when the statistics module is dbtng'ed :)

🐛 Bug report
Status

Closed: outdated

Version

7.0 ⚰️

Component
Statistics 

Last updated 21 days ago

No maintainer
Created by

🇨🇭Switzerland Berdir Switzerland

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024