Sticky Posts
Aug 28, 2009
Severely Lame PHP Web Browser Detection
I sometimes cloak regions of my site based on this really lame Browser Detection function. I don't cloack stuff that search engines would find illegal but there's moments when I need to keep some stuff away from 'obvious' non browsers.
So ... have fun with it: el_http_detectBrowser. And I do know there are better ways like a JavaScript that sets a COOKIE ;)
Registration is quick, painless and worth its weight in gold.
If you have any user agents you'd like handled send me the strings in the comments. Just make sure that there's like ... 5 people out there using them.


Nice.
Here is an interesting one for Javascript: http://www.quirksmode.org/js/detect.html