mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-18 03:25:31 -05:00
6 lines
131 B
Ruby
6 lines
131 B
Ruby
|
module GooglebotDetection
|
||
|
def self.googlebot?(user_agent)
|
||
|
!/Googlebot|Mediapartners|AdsBot/.match(user_agent).nil?
|
||
|
end
|
||
|
end
|