Class: Legitbot::DuckDuckGo
- Defined in:
- lib/legitbot/duckduckgo.rb
Overview
Constant Summary collapse
- ValidIPs =
%w(107.20.237.51 23.21.226.191 107.21.1.8 54.208.102.37)
Instance Method Summary collapse
Methods inherited from BotMatch
#detected_as, #fake?, fake?, #initialize, #reverse_domain, #reverse_name, #reverse_resolves?, #reversed_ip, #subdomain_of?, valid?
Constructor Details
This class inherits a constructor from Legitbot::BotMatch
Instance Method Details
#valid? ⇒ Boolean
6 7 8 |
# File 'lib/legitbot/duckduckgo.rb', line 6 def valid? DuckDuckGo::ValidIPs.include? @ip end |