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 :)

Comments

dddave’s picture

Still relevant? And if so it would be against D8 I guess...

vanessakovalsky’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Closing since don't get any new information