Parse HTTP_USER_AGENT w/o get_browser

My hosting provider does not want to configure their server to provide access to browscap.ini. This means I cannot use get_browser to parse HTTP_USER_AGENT. Is there an alternative way?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

FlorisMKAuthor Commented:
Yes, HyperBPP, that is indeed the documentation on get_browser (available in many places besides the URL you posted), which states clearly that a browscap.ini file is required for get_browser to work. My provider has not configured the server to provide that access, so I need an alternative method of parsing HTTP_USER_AGENT.

Like I said in my question.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Angular Fundamentals

Learn the fundamentals of Angular 2, a JavaScript framework for developing dynamic single page applications.

I've been successfully using a custom version of [PHP Sniffer]( over the last few years. Try it out and see if it suits.
FlorisMKAuthor Commented:
Thanks, hielo and lutrov; I'll have a chance to look into this next week. Btw, my main reason for wanting this functionality is to filter out the bots in my hit lists. If there's an even simpler way to identify bots in the HTTP_USER_AGENT, that would be even better. (Of course, I could preg_match on 'bot', 'spider', 'fetch' etc, but I was kinda hoping there's a more elegant solution.)
No, there's no value in trying to look for "bot", "spider", etc. You'll need to look around on the internet for the correct user agents trings. There's new one popping up all the time.
FlorisMKAuthor Commented:
Oh well. No elegant solution then, but thanks for your input, hielo and lutrov!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.