Sha256: 40164e3dd7c53b90b1542ddf9c834f146459d420350fb9a7fa66d338acfdbf2f
Contents?: true
Size: 486 Bytes
Versions: 34
Compression:
Stored size: 486 Bytes
Contents
module Workarea module Robots REGEX = /\b(80legs|Aboundex|AhrefsBot|alexa|Baidu|bing|CCBot|covario|discobot|exabot|ezooms|FairShare|fatbot|Gigabot|goodzer|Googlebot|hailoobot|IstellaBot|jikespider|libwww-perl|lwp-trivial|LYCOSA|mahonie|msnbot|MJ12bot|nessus|Nutch|SBIder|scanalert|ScoutJet|SeznamBot|ShopWiki|SiteUptime|Slurp|sogou|UnwindFetchor|WBSearchBot|WordPress|yandexbot|ZIBB|ZyBorg)\b/i def self.is_robot?(user_agent) user_agent.to_s =~ REGEX end end end
Version data entries
34 entries across 34 versions & 1 rubygems