Sha256: 7f2076f92939471428867140a53b79ca928d2b12fccf3b6b39cc3032d3f97b30

Contents?: true

Size: 347 Bytes

Versions: 1

Compression:

Stored size: 347 Bytes

Contents

module Legitbot
  # https://duckduckgo.com/duckduckbot
  class DuckDuckGo < BotMatch
    ValidIPs = %w(50.16.241.113 50.16.241.114 50.16.241.117 50.16.247.234 52.204.97.54 52.5.190.19 54.197.234.188 54.208.100.253 23.21.227.69)

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
legitbot-0.3.1 lib/legitbot/duckduckgo.rb