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.45 lib/workarea/robots.rb
workarea-core-3.4.44 lib/workarea/robots.rb
workarea-core-3.4.43 lib/workarea/robots.rb
workarea-core-3.4.42 lib/workarea/robots.rb
workarea-core-3.4.41 lib/workarea/robots.rb
workarea-core-3.4.40 lib/workarea/robots.rb
workarea-core-3.4.39 lib/workarea/robots.rb
workarea-core-3.4.38 lib/workarea/robots.rb
workarea-core-3.4.37 lib/workarea/robots.rb
workarea-core-3.4.36 lib/workarea/robots.rb
workarea-core-3.4.35 lib/workarea/robots.rb
workarea-core-3.4.34 lib/workarea/robots.rb
workarea-core-3.4.33 lib/workarea/robots.rb
workarea-core-3.4.32 lib/workarea/robots.rb
workarea-core-3.4.31 lib/workarea/robots.rb
workarea-core-3.4.30 lib/workarea/robots.rb
workarea-core-3.4.29 lib/workarea/robots.rb
workarea-core-3.4.28 lib/workarea/robots.rb
workarea-core-3.4.27 lib/workarea/robots.rb
workarea-core-3.4.26 lib/workarea/robots.rb