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

Version Path
workarea-core-3.4.25 lib/workarea/robots.rb
workarea-core-3.4.24 lib/workarea/robots.rb
workarea-core-3.4.23 lib/workarea/robots.rb
workarea-core-3.4.22 lib/workarea/robots.rb
workarea-core-3.4.21 lib/workarea/robots.rb
workarea-core-3.4.20 lib/workarea/robots.rb
workarea-core-3.4.19 lib/workarea/robots.rb
workarea-core-3.4.18 lib/workarea/robots.rb
workarea-core-3.4.17 lib/workarea/robots.rb
workarea-core-3.4.16 lib/workarea/robots.rb
workarea-core-3.4.15 lib/workarea/robots.rb
workarea-core-3.4.14 lib/workarea/robots.rb
workarea-core-3.4.13 lib/workarea/robots.rb
workarea-core-3.4.12 lib/workarea/robots.rb