Update Crawler List filter
-
Was looking for exactly such tracker and guests capture plugin for a long time! (Let’s hope development will continue.)
Kindly consider adding a new filter to update the crawlers list:
\plugins\wp-tao\includes\class-wptao-fingerprints.phpafter line 388:private function crawler_detect() { $crawlers_agents = 'bot|rambler|yahoo|accoona|aspseek|cococrawler|fast-webcrawler|lycos|scooter|altavista|estyle|scrubby|wordpress|installatron|homepay|transferuj|java|flipboard|spider|ltx71'; $crawlers_agents = apply_filters( 'wptao_crawlers_agents', $crawlers_agents ); //NEW return (preg_match( "/$crawlers_agents/", strtolower( $this->user_agent ) ) > 0); }We can easily exclude more buggers now:
add_filter( 'wptao_crawlers_agents', 'my_wptao_crawlers_agents' ); function my_wptao_crawlers_agents( $crawlers_agents ) { $crawlers_agents .= 'crawl|semrush|mail\.ru|pinterest|zoominfo|velen\.io|facebook|daum\.net|seznam|megaindex|sogou'; return $crawlers_agents; }Thanks!
The topic ‘Update Crawler List filter’ is closed to new replies.