user-agent

Detecting faked pagerank

Does anyone know how I would go about detecting faked pagerank in a php script im writing to run checks on a domain? I understand that PR is faked when someone sets up a specific 301 redirect to a high pr domain exclusively for googlebots, but dont know how I would mimic this to check (I guess I would need the exact user agent?) Thanks...

Mobile device identification from http headers

I have a large data-set containing HTTP Header information taken from network measurements. I need to use the UserAgent present in those headers to identify whether the useragent is for a Desktop or a Mobile Device or anything else. After doing that I need to identify the particular mobile device and perform further analysis on these dev...