Browse files

Detect anonymised registrations from name-services.com

  • Loading branch information...
1 parent f9d7fdd commit 5728b145ce062554900aec170767bde654faebf9 @purcell committed Aug 30, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 bin/postfix-policy-whois
View
4 bin/postfix-policy-whois
@@ -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 =~ /\./
@@ -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)

0 comments on commit 5728b14

Please sign in to comment.