+/* Example 5: Checking if the source IP is from a valid bot */
+void *is_valid_crawler(Eventinfo *lf)
+{
+ if ((strncmp(lf->log, "66.249.", 7) == 0) || /* Google bot */
+ (strncmp(lf->log, "72.14.", 6) == 0) || /* Feedfetcher-Google */
+ (strncmp(lf->log, "209.85.", 7) == 0) || /* Feedfetcher-Google */
+ (strncmp(lf->log, "65.55.", 6) == 0) || /* MSN/Bing */
+ (strncmp(lf->log, "207.46.", 7) == 0) || /* MSN/Bing */
+ (strncmp(lf->log, "74.6.", 5) == 0) || /* Yahoo */
+ (strncmp(lf->log, "72.30.", 6) == 0) || /* Yahoo */
+ (strncmp(lf->log, "67.195.", 7) == 0) /* Yahoo */
+ ) {
+ return (lf);
+ }