DetectBrowser

Description

DetectBrowser is a Perl module which tries to detect user's browser name and version as well as the underlying operating system, by analyzing the HTTP user-agent string.

Some ideas used in this module have been borrowed from HTTP::BrowserDetect (written by Lee Semel) and HTML::ParseBrowser (written by Sean Cannon). Both available from CPAN.

The reason I wrote DetectBrowser is because I have tested the above mentioned modules against more than 5000 user-agent strings and I was not fully satisfied with the results. Note that I'm NOT saying they are not good. I just needed a module that would check more careful and make better guesses.

Purpose

DetectBrowser can be very useful if you need to know which browser and OS your visitors are using.

DetectBrowser was tested on Linux and Windows and it is able to recognize all versions of AOL, Galeon, Konqueror, MSIE, Mozilla, Netscape, Opera, WebTV and many others, running on BSD, FreeBSD, HP-UX, Linux, Mac68k, Mac_PowerPC, Sun, Windows (3.X/9X/NT/2000/XP), etc.

Dependencies

DetectBrowser does NOT depend an any other module or software!

History
version 0.2 (from XII.2002)
  • Changed the order of tests. Detects few more user agents now.
  • Some bug fixes! (Including vesion 1.0.1 is no longer trimmed down to 1.0)
version 0.1 (from X.2002)
  • This is the first version of this module!
Resources
Home page:
http://milen.netbiuro.com/projects/DetectBrowser
Download:
DetectBrowser-0.2.tar.gz [ 5.8K ]