Class: Aquatone::Detectors::Unbounce
- Inherits:
-
Aquatone::Detector
- Object
- Aquatone::Detector
- Aquatone::Detectors::Unbounce
- Defined in:
- lib/aquatone/detectors/unbounce.rb
Constant Summary collapse
- APEX_VALUE =
"54.84.104.245".freeze
- CNAME_VALUE =
"unbouncepages.com".freeze
- RESPONSE_FINGERPRINT =
"The requested URL was not found on this server.".freeze
Instance Attribute Summary
Attributes inherited from Aquatone::Detector
Instance Method Summary collapse
Methods inherited from Aquatone::Detector
descendants, #initialize, meta, meta=, #positive?, sluggified_name
Constructor Details
This class inherits a constructor from Aquatone::Detector
Instance Method Details
#run ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/aquatone/detectors/unbounce.rb', line 15 def run if apex_resource? return false unless resource_value == APEX_VALUE elsif cname_resource? return false unless resource_value == CNAME_VALUE end get_request("http://#{host}/").body.include?(RESPONSE_FINGERPRINT) end |