2 fplanque Nov 11, 2009 19:21

Great, Thanks! I'm working on refining the list a bit based on what has been showing up in my logs.
Having uploaded my new _stats.php I am guessing the filtering occurs as the hits come in rather than when the page is loaded, right? Once I have it in use a bit, I'll upload it or something so it can work its way back in.
I've updated this & tested it. How should I go about providing it to you folks?
Thanks!
MaxHedrm wrote:
Having uploaded my new _stats.php I am guessing the filtering occurs as the hits come in rather than when the page is loaded, right?
That's right.
I've updated this & tested it. How should I go about providing it to you folks?
You could paste it on http://php.pastebin.com and give us the link. Or upload the entire file somewhere and do the same. :)
Thanks for your effort!
Nice, that's a handy little tool. Here it is:
http://php.pastebin.com/m677ab816
I highlighted the lines I messed with.
Mostly OT, but "Refered browser hits" is properly spelled according to the internet. Why an obviously improper spelling was made the standard is beyond me, but a referrer actually is a referer in the web standards.
OK, these lines have been added to CVS (b2evo v4)
Thanks.
This may be a daft question (I'm good at those), but would the list of browsers/robots/rss readers etc not be better fed from a database source, where this could be dynamically updated along the lines of the spam blacklist? I realise that's rather different than handling the stats filtering, but maybe it could be the start of being able to deal with the multiple 'unknowns' that I'm seeing these days. Somehow, updating the _stats.php file feels a bit reactive.
2nd question - would I be right in thinking that I could update my b2e v2.4.7 _stats.php file to align with MaxHedrm's revised version without a problem?
Yes, ideally it would be in the database, but it's not a priority on the todo list.
I'm not sure about replacing the whole file but you can definitely add/change the highlighted lines.
The list of search engines urls can be configured in /conf/_stats.php
Please share your mods so we can include them in the next release :)