lib/wmap/domain_tracker.rb
# Simple method to check if a domain is already within the domain cache table
Simple method to check if a domain is already within the domain cache table
Simple method to check if a domain is already within the domain cache table
def domain_known?(domain)
		domain=domain.strip.downcase unless domain.nil?
		case self.class.name
		when "Wmap::DomainTracker"
			return @known_internet_domains.key?(domain)
		when "Wmap::DomainTracker::SubDomain"
			return @known_internet_sub_domains.key?(domain)
		else
			return false
		end
	rescue => ee
		puts "Exception on method #{__method__}: #{ee}" if @verbose
		return false
	end
def domain_known? ( domain ) domain = domain . strip . downcase unless domain . nil? case self . class . name when "Wmap::DomainTracker" return @known_internet_domains . key? ( domain ) when "Wmap::DomainTracker::SubDomain" return @known_internet_sub_domains . key? ( domain ) else return false end rescue => ee puts "Exception on method #{__method__}: #{ee}" if @verbose return false end
Simple method to check if a domain is already within the domain cache table
Simple method to check if a domain is already within the domain cache table
#abort "Trusted Internet domain file not loaded properly! " if @known_internet_domains.nil? or @known_internet_sub_domains.nil?
domain
<not_specific>