You can use trackSpiders.cgi to track spiders from
major search engines (Google, Yahoo!, and MSN).
This Bourne shell CGI script works on Apache Web
servers. It outputs details of each spider visit
plus a bar chart comparing the number of hits from
each search engine spider.