Welcome to WebmasterWorld Guest from 184.108.40.206
Forum Moderators: open
However, there is no such thing as an "optimized" script for your needs. Do you need to recognize all browsers? Well, then it's important that many common browsers can identify themselves as any browser.
Browser sniffing is seldom very reliable. If possible, try to avoid it.