mirror of
https://github.com/discourse/discourse.git
synced 2025-02-23 22:21:17 +00:00
Merge pull request #4872 from mcmcclur/add-httrack
Update crawler_detection.rb
This commit is contained in:
commit
fcc523c320
@ -4,6 +4,6 @@ module CrawlerDetection
|
||||
# added 'Swiftbot' based on https://meta.discourse.org/t/how-to-add-html-markup-or-meta-tags-for-external-search-engine/28220
|
||||
|
||||
def self.crawler?(user_agent)
|
||||
!/Googlebot|Mediapartners|AdsBot|curl|Twitterbot|facebookexternalhit|bingbot|Baiduspider|ia_archiver|Wayback Save Page|360Spider|Swiftbot|YandexBot/.match(user_agent).nil?
|
||||
!/Googlebot|Mediapartners|AdsBot|curl|HTTrack|Twitterbot|facebookexternalhit|bingbot|Baiduspider|ia_archiver|Wayback Save Page|360Spider|Swiftbot|YandexBot/.match(user_agent).nil?
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user