My suggestion is instead of chasing UA sniffing (which is a losing proposition), just give up on blocking "mobile" or any kind of browser.
FWIW my mobile browser is just as capable as my desktop and as long as you don't block zooming I can deal with an "unoptimized" layout.