class Enricher::CDN
Bogons ipv4 allow for both static simple checks and for dynamic full Bogon
list checks provided by Team Cymru.
CDN
List provided by - (23 Dec 2014) github.com/WPO-Foundation/webpagetest/blob/master/agent/wpthook/cdn.h
Constants
- CDN_PROVIDERS
Public Class Methods
contains?(hostname = "")
click to toggle source
Expects a hostname string as a variable
# File lib/enricher/cdn.rb, line 100 def self.contains?(hostname = "") if hostname != "" then CDN_PROVIDERS.each { |cdn_entry| if hostname.match(cdn_entry[0]) then return true end } end return false end