Skip to content
Browse files

Block whoisguard-registered domains

  • Loading branch information...
1 parent 6b687a7 commit af0dda1e312c0cb2c69f707ebef14a7bd810e462 @purcell committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 bin/postfix-policy-whois
View
4 bin/postfix-policy-whois
@@ -28,7 +28,7 @@ end
def dodgy_dns?(domain)
if ns = nameserver_for(domain)
- return domain if (ns[".monikerdns.net"] || ns[".name-services.com"])
+ return domain if (ns[".monikerdns.net"] || ns[".name-services.com"] || ns[".registrar-servers.com"])
else
parent_domain = domain.scan(/\.(.*)/).flatten.first
if parent_domain && parent_domain =~ /\./
@@ -39,7 +39,7 @@ end
def dodgy_whois?(domain)
## TODO: throttle requests
- return Whois.whois(domain).match?(/monikerprivacy|whoisprivacyprotect\.com/)
+ return Whois.whois(domain).match?(/monikerprivacy|whoisprivacyprotect\.com|whoisguard\.com/)
end
def dodgy?(domain)

0 comments on commit af0dda1

Please sign in to comment.
Something went wrong with that request. Please try again.