Sha256: 29353b1dbaddda52f59ce85dd7d51a348319d2ef75d9344b9f8cb488216d3594
Contents?: true
Size: 376 Bytes
Versions: 1
Compression:
Stored size: 376 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 initialize(ip, resolver_config = nil) super(ip, resolver_config) end 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.0.1 | lib/legitbot/duckduckgo.rb |