mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-02-16 03:30:05 -05:00
5 lines
127 B
Ruby
5 lines
127 B
Ruby
module CrawlerDetection
|
|
def self.crawler?(user_agent)
|
|
!/Googlebot|Mediapartners|AdsBot/.match(user_agent).nil?
|
|
end
|
|
end
|