class Aquatone::Detectors::Fastly
Constants
- CNAME_FALSE_POSITIVE
- CNAME_VALUE
- RESPONSE_FINGERPRINT
Public Instance Methods
run()
click to toggle source
# File lib/aquatone/detectors/fastly.rb, line 15 def run return false unless cname_resource? if resource_value.end_with?(CNAME_VALUE) unless resource_value.end_with?(CNAME_FALSE_POSITIVE) return get_request("http://#{host}/").body.include?(RESPONSE_FINGERPRINT) end end false end