Class: Legitbot::Google
Overview
Constant Summary collapse
- ValidDomains =
["google.com.", "googlebot.com."]
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
8 9 10 |
# File 'lib/legitbot/google.rb', line 8 def valid? subdomain_of?(*Google::ValidDomains) && reverse_resolves? end |