Firefox PHP

browser logging and user agent filtering

Posted by Gael Marziou 
Hello,

I have implemented a raw feature which I find useful, the idea is to collect HTTP_USER_AGENT information each time the forum is accessed.

It allows you to know which browsers your users use so you can decide whether you should use new HTML features or drop some older ones.

It also allows you to deny access to some robots like e-mail collectors that browse your forums and collect all the e-mail addresses of your users for spamming them.more information can be found at [www.siteware.ch]

Of course, if you have access to your web server logs then you don't need this logging feature but maybe the user agent filetring is stiill interesting.

My implementation is rather straight forward, it uses a module browser.php called from phorum's index.php and a table whose definition for MySql is included in comments. I did it for experimental purpose and I think it should be optimized and also customized for each one purpose.

For instance, afterwards I don't really find interesting to know the user's operating system but others may disagree...

Anyway, I just post this here but I do not plan to maintain it.

Gael
Attachments:
open | download - browser.txt (5 KB)
kkks
Re: browser logging and user agent filtering
December 20, 2001 01:38AM
Thank you, and I am very interested.

I would suggest to modify it to display Browser Agent in the display field and the user can select not to enclose this data.
Sorry, you do not have permission to post/reply in this forum.