How can I view the IP addresses of visitors who view the home page of my site? I need to gather the IP addresses of visitors who view the home page of the site. There are bots that bounce off of the home page thousands of times a day. The Statistics module makes the site too slow. I also tried the Visitors module which worked pretty well, but there was no way to reduce the results only for the home page. Is there an another way to exclusively view IP addresses that visit the home page?

Edit: A way that doesn't slow the site down with a lot of database writing.
If you are using Apache, all page requests are recorded in the log directory. On a Ubuntu machine the location of this directory will be /var/log/apache2.

To block spam traffic, I recommend the mod_spamhaus module. This link contains information on how to setup mod_spamhaus on a Ubuntu machine. The module checks for blacklisted IPs listed on the Spamhaus project and subsequently refuses the connection if a positive match is found.