From a7ba2df17a4dff9198e6821e91db45cf5b488455 Mon Sep 17 00:00:00 2001 From: Marcel Naeve Date: Fri, 13 May 2016 15:16:33 +0200 Subject: [PATCH] removed dnsbl from email validation. --- Validate.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Validate.php b/Validate.php index f1d26e1..dc15fd3 100644 --- a/Validate.php +++ b/Validate.php @@ -12,10 +12,10 @@ class Validate { /** - * Static function for validating email addresses with multiple secure levels and blacklist. + * Static function for validating email addresses with multiple secure levels and black- and whitelist. * @param string $email email address * @param int $level secure level - * @param array $lists filter lists like whitelist, blacklist, dnsbl,.. + * @param array $lists filter lists like whitelist, blacklist,.. * @return bool is the email address valid? */ static function email (string $email, int $level=1, array $lists=[]) : bool @@ -51,11 +51,6 @@ class Validate $results = checkdnsrr($split[1], "MX"); } - // DNS Blacklist (domains) - if($results && isset($lists['dnsbl']) && $level >= 3) { - // TODO: check if domain is registered in dnsbl of list. - } - return $results; }