Sha256: e2fa79775b5f5c22b0cd2b8485450962fcabe305d16243d3f5219b77b2aa4b38

Contents?: true

Size: 306 Bytes

Versions: 12

Compression:

Stored size: 306 Bytes

Contents

module Legitbot
  # https://blogs.bing.com/webmaster/2012/08/31/how-to-verify-that-bingbot-is-bingbot/
  class Bing < BotMatch
    ValidDomains = ["search.msn.com."]

    def valid?
      subdomain_of?(*Bing::ValidDomains) && reverse_resolves?
    end
  end

  rule Legitbot::Bing, %w(Bingbot bingbot)
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
legitbot-0.3.2 lib/legitbot/bing.rb
legitbot-0.3.1 lib/legitbot/bing.rb
legitbot-0.3.0 lib/legitbot/bing.rb
legitbot-0.2.7 lib/legitbot/bing.rb
legitbot-0.2.6 lib/legitbot/bing.rb
legitbot-0.2.4 lib/legitbot/bing.rb
legitbot-0.2.3 lib/legitbot/bing.rb
legitbot-0.2.2 lib/legitbot/bing.rb
legitbot-0.2.1 lib/legitbot/bing.rb
legitbot-0.2.0 lib/legitbot/bing.rb
legitbot-0.1.2 lib/legitbot/bing.rb
legitbot-0.1.0 lib/legitbot/bing.rb