Skip to content

Commit

Permalink
Detect anonymised registrations from name-services.com
Browse files Browse the repository at this point in the history
  • Loading branch information
purcell committed Aug 30, 2012
1 parent f9d7fdd commit 5728b14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/postfix-policy-whois
Expand Up @@ -19,7 +19,7 @@ end

def dodgy_dns?(domain)
if ns = nameserver_for(domain)
return domain if ns[".monikerdns.net"]
return domain if (ns[".monikerdns.net"] || ns[".name-services.com"])
else
parent_domain = domain.scan(/\.(.*)/).flatten.first
if parent_domain && parent_domain =~ /\./
Expand All @@ -30,7 +30,7 @@ end

def dodgy_whois?(domain)
## TODO: throttle requests
return Whois.whois(domain).match?(/monikerprivacy/)
return Whois.whois(domain).match?(/monikerprivacy|whoisprivacyprotect\.com/)
end

def dodgy?(domain)
Expand Down

0 comments on commit 5728b14

Please sign in to comment.