Sha256: 50768cda97e5fc2d5fc075f9f5d89392945854bdda2539f2b54886ed00b23cb1

Contents?: true

Size: 288 Bytes

Versions: 7

Compression:

Stored size: 288 Bytes

Contents

module Legitbot
  # https://duckduckgo.com/duckduckbot
  class DuckDuckGo < BotMatch
    ValidIPs = %w(72.94.249.34 72.94.249.35 72.94.249.36 72.94.249.37 72.94.249.38)

    def valid?
      DuckDuckGo::ValidIPs.include? @ip
    end
  end

  rule Legitbot::DuckDuckGo, %w(DuckDuckGo)
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
legitbot-0.2.4 lib/legitbot/duckduckgo.rb
legitbot-0.2.3 lib/legitbot/duckduckgo.rb
legitbot-0.2.2 lib/legitbot/duckduckgo.rb
legitbot-0.2.1 lib/legitbot/duckduckgo.rb
legitbot-0.2.0 lib/legitbot/duckduckgo.rb
legitbot-0.1.2 lib/legitbot/duckduckgo.rb
legitbot-0.1.0 lib/legitbot/duckduckgo.rb