in reply to Re^2: User tracking
in thread User tracking

Checking user-agent generally does work pretty well, as does robots.txt.

If you actually need to identify (rogue) bots which use browser UA strings and ignore robots.txt, your best chance would be to look at the patterns in the timestamps for when pages are requested:

Don't rely on javascript to make your determination. Some of us use the noscript plugin, which blocks javascript from running unless it comes from a whitelisted site, but we're still not bots.

Anyhow, though, what are you attempting to accomplish by identifying what's a bot and what isn't?