Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Detect anonymised registrations from name-services.com

  • Loading branch information...
commit 5728b145ce062554900aec170767bde654faebf9 1 parent f9d7fdd
Steve Purcell authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 bin/postfix-policy-whois
4 bin/postfix-policy-whois
View
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.