yeah, I was afraid of that.... the UA string is not really that standard in its composition
I guess you could look for telltale strings in it with a table rather than trying to pluck out the piece that some browsers have. It worked on two of the browsers I tested.
also, change gethostbyname to gethostbyaddr -- I wrote that off the top of my head and made a thinko.
