Continued with ext-blacklist:
authorRoland Häder <roland@mxchange.org>
Wed, 23 Jan 2013 17:33:14 +0000 (17:33 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 23 Jan 2013 17:33:14 +0000 (17:33 +0000)
- Blacklisting of IP addresses now possible (with pattern as for all)
- Resorted ext-blacklist library, added new functions for IP blacklisting
- TODOs.txt updated

DOCS/TODOs.txt
inc/extensions/ext-blacklist.php
inc/filter/blacklist_filter.php
inc/language/blacklist_de.php
inc/language/de.php
inc/language/mydata_de.php
inc/libs/blacklist_functions.php
inc/libs/register_functions.php
inc/modules/member/what-mydata.php
templates/de/html/admin/admin_config_blacklist.tpl

index 5ffb98425ac11fabc188e8db788db26378d18562..32d7c03229d0ede434b925e491eac69672990d30 100644 (file)
@@ -64,7 +64,8 @@
 ./inc/extensions/sponsor/mode-setup.php:43:// @TODO Remove double tabs from all lines
 ./inc/extensions/sql_patches/mode-update.php:43:// @TODO Remove double tabs from all lines
 ./inc/extensions/user/mode-update.php:43:// @TODO Remove double tabs from all lines
 ./inc/extensions/sponsor/mode-setup.php:43:// @TODO Remove double tabs from all lines
 ./inc/extensions/sql_patches/mode-update.php:43:// @TODO Remove double tabs from all lines
 ./inc/extensions/user/mode-update.php:43:// @TODO Remove double tabs from all lines
-./inc/filter/blacklist_filter.php:63:  // @TODO Insert log entry
+./inc/filter/blacklist_filter.php:82:  // @TODO Insert log entry
+./inc/filter/blacklist_filter.php:93:  // @TODO Insert log entry
 ./inc/filter/bonus_filter.php:56:              // @TODO This query isn't right, it will only update if the user was for a longer time away!
 ./inc/filter/cache_filter.php:94:              // @TODO This should be rewritten not to load the cache file for just checking if it is there for save removal.
 ./inc/filter/forced_filter.php:73:             // @TODO This part is unfinished
 ./inc/filter/bonus_filter.php:56:              // @TODO This query isn't right, it will only update if the user was for a longer time away!
 ./inc/filter/cache_filter.php:94:              // @TODO This should be rewritten not to load the cache file for just checking if it is there for save removal.
 ./inc/filter/forced_filter.php:73:             // @TODO This part is unfinished
@@ -80,8 +81,8 @@
 ./inc/header.php:66:// @TODO Find a way to not use direct module comparison
 ./inc/install-functions.php:446:       // @TODO Comparing with DEFAULT_MAIN_TITLE doesn't work
 ./inc/install-functions.php:97:        // @TODO DEACTIVATED: changeDataInLocalConfigurationFile('OUTPUT-MODE', "setConfigEntry('OUTPUT_MODE', '", "');", postRequestElement('omode'), 0);
 ./inc/header.php:66:// @TODO Find a way to not use direct module comparison
 ./inc/install-functions.php:446:       // @TODO Comparing with DEFAULT_MAIN_TITLE doesn't work
 ./inc/install-functions.php:97:        // @TODO DEACTIVATED: changeDataInLocalConfigurationFile('OUTPUT-MODE', "setConfigEntry('OUTPUT_MODE', '", "');", postRequestElement('omode'), 0);
-./inc/language/de.php:1161:    // @TODO Rewrite these two constants
-./inc/language/de.php:1177:    // @TODO Rewrite these three constants
+./inc/language/de.php:1162:    // @TODO Rewrite these two constants
+./inc/language/de.php:1178:    // @TODO Rewrite these three constants
 ./inc/language/de.php:46:      // @TODO Please sort these language elements
 ./inc/language/de.php:748:// @TODO Are these constants longer used?
 ./inc/language-functions.php:254:      // @TODO These are all valid languages, again hard-coded
 ./inc/language/de.php:46:      // @TODO Please sort these language elements
 ./inc/language/de.php:748:// @TODO Are these constants longer used?
 ./inc/language-functions.php:254:      // @TODO These are all valid languages, again hard-coded
index 988102d3c15171061f040af8351296b0039709dc..25a325b96ffbc609cdcc42c3275b79fbd882ccf4 100644 (file)
@@ -72,12 +72,15 @@ INDEX (`pool_id`)",
 
                // Add configuration
                addConfigAddSql('email_blacklist', "ENUM('Y','N') NOT NULL DEFAULT 'Y'");
 
                // Add configuration
                addConfigAddSql('email_blacklist', "ENUM('Y','N') NOT NULL DEFAULT 'Y'");
+               addConfigAddSql('ip_blacklist', "ENUM('Y','N') NOT NULL DEFAULT 'Y'");
                addConfigAddSql('url_blacklist', "ENUM('Y','N') NOT NULL DEFAULT 'Y'");
 
                // Register filters
                registerFilter(__FILE__, __LINE__, 'pre_user_registration' , 'CHECK_EMAIL_BLACKLISTED', FALSE, TRUE, isExtensionDryRun());
                addConfigAddSql('url_blacklist', "ENUM('Y','N') NOT NULL DEFAULT 'Y'");
 
                // Register filters
                registerFilter(__FILE__, __LINE__, 'pre_user_registration' , 'CHECK_EMAIL_BLACKLISTED', FALSE, TRUE, isExtensionDryRun());
+               registerFilter(__FILE__, __LINE__, 'pre_user_registration' , 'CHECK_IP_BLACKLISTED'   , FALSE, TRUE, isExtensionDryRun());
                registerFilter(__FILE__, __LINE__, 'pre_update_user_data'  , 'CHECK_EMAIL_BLACKLISTED', FALSE, TRUE, isExtensionDryRun());
                registerFilter(__FILE__, __LINE__, 'post_email_blacklisted', 'LOG_EMAIL_BLACKLISTED'  , FALSE, TRUE, isExtensionDryRun());
                registerFilter(__FILE__, __LINE__, 'pre_update_user_data'  , 'CHECK_EMAIL_BLACKLISTED', FALSE, TRUE, isExtensionDryRun());
                registerFilter(__FILE__, __LINE__, 'post_email_blacklisted', 'LOG_EMAIL_BLACKLISTED'  , FALSE, TRUE, isExtensionDryRun());
+               registerFilter(__FILE__, __LINE__, 'post_ip_blacklisted'   , 'LOG_IP_BLACKLISTED'     , FALSE, TRUE, isExtensionDryRun());
                break;
 
        case 'remove': // Do stuff when removing extension
                break;
 
        case 'remove': // Do stuff when removing extension
@@ -89,8 +92,10 @@ INDEX (`pool_id`)",
 
                // Unregister filters
                unregisterFilter(__FILE__, __LINE__, 'pre_user_registration' , 'CHECK_EMAIL_BLACKLISTED', TRUE, isExtensionDryRun());
 
                // Unregister filters
                unregisterFilter(__FILE__, __LINE__, 'pre_user_registration' , 'CHECK_EMAIL_BLACKLISTED', TRUE, isExtensionDryRun());
+               unregisterFilter(__FILE__, __LINE__, 'pre_user_registration' , 'CHECK_IP_BLACKLISTED'   , TRUE, isExtensionDryRun());
                unregisterFilter(__FILE__, __LINE__, 'pre_update_user_data'  , 'CHECK_EMAIL_BLACKLISTED', TRUE, isExtensionDryRun());
                unregisterFilter(__FILE__, __LINE__, 'post_email_blacklisted', 'LOG_EMAIL_BLACKLISTED'  , TRUE, isExtensionDryRun());
                unregisterFilter(__FILE__, __LINE__, 'pre_update_user_data'  , 'CHECK_EMAIL_BLACKLISTED', TRUE, isExtensionDryRun());
                unregisterFilter(__FILE__, __LINE__, 'post_email_blacklisted', 'LOG_EMAIL_BLACKLISTED'  , TRUE, isExtensionDryRun());
+               unregisterFilter(__FILE__, __LINE__, 'post_ip_blacklisted'   , 'LOG_IP_BLACKLISTED'     , TRUE, isExtensionDryRun());
                break;
 
        case 'activate': // Do stuff when admin activates this extension
                break;
 
        case 'activate': // Do stuff when admin activates this extension
index 289d27105f374098726d317093d1a37861679fdb..00e886c5328dd6623515b1add97c31c9b53cb4d5 100644 (file)
@@ -45,7 +45,9 @@ function FILTER_CHECK_EMAIL_BLACKLISTED ($filterData) {
        // Is the email address blacklisted?
        if (($filterData['init_done'] === TRUE) && (isEmailBlacklistEnabled()) && (isEmailBlacklisted($filterData['post_data']['email']))) {
                // Then abort here
        // Is the email address blacklisted?
        if (($filterData['init_done'] === TRUE) && (isEmailBlacklistEnabled()) && (isEmailBlacklisted($filterData['post_data']['email']))) {
                // Then abort here
-               $filterData['init_done'] = FALSE;
+               $filterData['init_done']   = FALSE;
+               $filterData['blacklisted'] = 'email';
+               $filterData['message']     = '{--EMAIL_IS_BLACKLISTED--}';
 
                // Run filter chain for successful detection (don't rely on other fields than 'email') here
                runFilterChain('post_email_blacklisted', $filterData);
 
                // Run filter chain for successful detection (don't rely on other fields than 'email') here
                runFilterChain('post_email_blacklisted', $filterData);
@@ -55,10 +57,38 @@ function FILTER_CHECK_EMAIL_BLACKLISTED ($filterData) {
        return $filterData;
 }
 
        return $filterData;
 }
 
+// Filter to check if IP address is blacklisted
+function FILTER_CHECK_IP_BLACKLISTED ($filterData) {
+       // Is the IP address blacklisted?
+       if (($filterData['init_done'] === TRUE) && (isEmailBlacklistEnabled()) && (isIpBlacklisted(determineRealRemoteAddress()))) {
+               // Then abort here
+               $filterData['init_done']   = FALSE;
+               $filterData['blacklisted'] = 'ip';
+               $filterData['message']     = '{--IP_IS_BLACKLISTED--}';
+
+               // Run filter chain for successful detection (don't rely on other fields than 'IP') here
+               runFilterChain('post_ip_blacklisted', $filterData);
+       } // END - if
+
+       // Return filtered data
+       return $filterData;
+}
+
 // Filter for logging blacklisted email addresses, is being called from above filter
 function FILTER_LOG_EMAIL_BLACKLISTED ($filerData) {
        // Make sure, that required data is there
 // Filter for logging blacklisted email addresses, is being called from above filter
 function FILTER_LOG_EMAIL_BLACKLISTED ($filerData) {
        // Make sure, that required data is there
-       assert((isset($filterData['init_done'])) && (isset($filterData['post_data']['email'])));
+       assert((isset($filterData['init_done'])) && ($filterData['blacklisted'] == 'email'));
+
+       // @TODO Insert log entry
+
+       // Return filtered data
+       return $filterData;
+}
+
+// Filter for logging blacklisted IP addresses, is being called from above filter
+function FILTER_LOG_IP_BLACKLISTED ($filerData) {
+       // Make sure, that required data is there
+       assert((isset($filterData['init_done'])) && ($filterData['blacklisted'] == 'ip'));
 
        // @TODO Insert log entry
 
 
        // @TODO Insert log entry
 
index 1884f02bb6190a932a039344f0c1379a5a6fdccd..a9f59b22dedb6b678fe3772b1e4cf5110e391750 100644 (file)
@@ -46,6 +46,7 @@ addMessages(array(
        'ADMIN_CONFIG_BLACKLIST_TITLE' => "Konfiguration von Sperrlisten",
        'ADMIN_CONFIG_BLACKLIST_LEGEND' => "Sperrlisten aktvieren:",
        'ADMIN_CONFIG_EMAIL_BLACKLIST_ENABLED' => "Sperrliste f&uuml;r Email-Adressen aktivieren?",
        'ADMIN_CONFIG_BLACKLIST_TITLE' => "Konfiguration von Sperrlisten",
        'ADMIN_CONFIG_BLACKLIST_LEGEND' => "Sperrlisten aktvieren:",
        'ADMIN_CONFIG_EMAIL_BLACKLIST_ENABLED' => "Sperrliste f&uuml;r Email-Adressen aktivieren?",
+       'ADMIN_CONFIG_IP_BLACKLIST_ENABLED' => "Sperrliste f&uuml;r IP-Adressen aktivieren?",
        'ADMIN_CONFIG_URL_BLACKLIST_ENABLED' => "Sperrliste f&uuml;r gebuchte URLs aktivieren?",
        'ADMIN_CONFIG_BLACKLIST_NOTICE' => "<strong>Hinweise:</strong> Die Sperrliste f&uuml;r Email-Adressen gilt sowohl f&uuml;r die Mitgliedsanmeldung als auch wenn das Mitglied seine Daten &auml;ndert. Ist die vom Mitglied eingegebene Email-Adresse gesperrt, wird diese nicht angenommen. Die URL-Sperrliste gilt f&uuml;r alle Erweiterungen (Besuchertausch, Mailbuchung, Forced-Buchungen usw.).",
 ));
        'ADMIN_CONFIG_URL_BLACKLIST_ENABLED' => "Sperrliste f&uuml;r gebuchte URLs aktivieren?",
        'ADMIN_CONFIG_BLACKLIST_NOTICE' => "<strong>Hinweise:</strong> Die Sperrliste f&uuml;r Email-Adressen gilt sowohl f&uuml;r die Mitgliedsanmeldung als auch wenn das Mitglied seine Daten &auml;ndert. Ist die vom Mitglied eingegebene Email-Adresse gesperrt, wird diese nicht angenommen. Die URL-Sperrliste gilt f&uuml;r alle Erweiterungen (Besuchertausch, Mailbuchung, Forced-Buchungen usw.).",
 ));
index cfbd7727decea90656087161899ce7cd0a910255..067d648cd2b3bfeabfc3f659410d6d15b1b5d3f0 100644 (file)
@@ -1025,7 +1025,8 @@ addMessages(array(
        'UNKNOWN_ERROR_CODE' => "Unbekannter Fehlercode <span class=\"data\">0x{%%pipe,getHexErrorCode=%s%%}</span> erkannt.",
        'LOADER_SECURITY_HASH_MISMATCH' => "Der Sicherheitshash f&uuml;r den Dereferrer stimmt nicht mit der URL &uuml;berein.",
        'URL_IS_BLACKLISTED' => "URL ist gesperrt.",
        'UNKNOWN_ERROR_CODE' => "Unbekannter Fehlercode <span class=\"data\">0x{%%pipe,getHexErrorCode=%s%%}</span> erkannt.",
        'LOADER_SECURITY_HASH_MISMATCH' => "Der Sicherheitshash f&uuml;r den Dereferrer stimmt nicht mit der URL &uuml;berein.",
        'URL_IS_BLACKLISTED' => "URL ist gesperrt.",
-       'MEMBER_EMAIL_BLACKLISTED' => "Ihre Email-Adresse darf bei uns nicht verwendet werden. Bitte setzen Sie sich mit uns in Verbindung.",
+       'EMAIL_IS_BLACKLISTED' => "Ihre Email-Adresse darf bei uns nicht verwendet werden. Bitte setzen Sie sich mit uns in Verbindung.",
+       'IP_IS_BLACKLISTED' => "Die von Ihnen derzeit verwendete IP-Adresse ist bei uns gesperrt. Bitte setzen Sie sich mit uns in Verbindung.",
        'DATA_IS_HIDDEN' => "Daten sind verdeckt.",
        'ADMIN_BOOKING_PACKAGE_ID' => "Buchungspaket",
        'ADMIN_BOOKING_PACKAGE_LINK' => "Zum Paket ...",
        'DATA_IS_HIDDEN' => "Daten sind verdeckt.",
        'ADMIN_BOOKING_PACKAGE_ID' => "Buchungspaket",
        'ADMIN_BOOKING_PACKAGE_LINK' => "Zum Paket ...",
index 339acdb82c4060eac076fa1b791bc7f926535b03..d87a7fd23e3fb89ca267cd7e0e0759cbbee8b846 100644 (file)
@@ -45,6 +45,7 @@ addMessages(array(
        'MEMBER_PROFILE_LAST_CHANGE' => "Letzte &Auml;nderung",
        'MEMBER_PROFILE_UPDATED' => "Ihre Profildaten wurden aktualisiert.",
        'MEMBER_EMAIL_IS_ALREADY_REGISTERED' => "Die Email-Adresse wird bereits von einem anderen Account verwendet.",
        'MEMBER_PROFILE_LAST_CHANGE' => "Letzte &Auml;nderung",
        'MEMBER_PROFILE_UPDATED' => "Ihre Profildaten wurden aktualisiert.",
        'MEMBER_EMAIL_IS_ALREADY_REGISTERED' => "Die Email-Adresse wird bereits von einem anderen Account verwendet.",
+       'PRE_UPDATE_USER_DATA_FAILED' => "&Uuml;berpr&uuml;fung Ihrer Mitgliedsdaten vor Aktualisierung fehlgeschlagen. Bitte setzen Sie sich mit uns in Verbindung.",
 ));
 
 // [EOF]
 ));
 
 // [EOF]
index 05803c8c2793cb4aef11661d9e3bac2f14b96c44..70f45e96e967ae9603bd237fe6c78457c465bc68 100644 (file)
@@ -40,6 +40,24 @@ if (!defined('__SECURITY')) {
        die();
 } // END - if
 
        die();
 } // END - if
 
+// Checks whether given email is blacklisted
+function isEmailBlacklisted ($email) {
+       // Call inner function
+       return isGenericBlacklisted('email', $email);
+}
+
+// Checks whether given IP is blacklisted
+function isIpBlacklisted ($ip) {
+       // Call inner function
+       return isGenericBlacklisted('ip', $ip);
+}
+
+// Checks whether given URL is blacklisted
+function isUrlBlacklisted ($url) {
+       // Call inner function
+       return isGenericBlacklisted('url', $email);
+}
+
 // Checks whether given data is blacklisted
 function isGenericBlacklisted ($type, $data) {
        // Mark it as not listed by default
 // Checks whether given data is blacklisted
 function isGenericBlacklisted ($type, $data) {
        // Mark it as not listed by default
@@ -92,13 +110,19 @@ LIMIT 1",
 // Inserts a given email (pattern) in blacklist if not found
 function insertEmailInBlacklist ($email, $provider = 'BLACKLIST') {
        // Call inner function
 // Inserts a given email (pattern) in blacklist if not found
 function insertEmailInBlacklist ($email, $provider = 'BLACKLIST') {
        // Call inner function
-       insertGenericInBlacklist ('email', $email, NULL, $provider);
+       return insertGenericInBlacklist ('email', $email, NULL, $provider);
 }
 
 }
 
-// Inserts a given URL in blacklist if not found
+// Inserts a given IP (pattern) in blacklist if not found
+function insertIpInBlacklist ($ip, $provider = 'BLACKLIST') {
+       // Call inner function
+       return insertGenericInBlacklist ('ip', $ip, NULL, $provider);
+}
+
+// Inserts a given URL (pattern) in blacklist if not found
 function insertUrlInBlacklist ($url, $poolId, $provider = 'BLACKLIST') {
        // Call inner function
 function insertUrlInBlacklist ($url, $poolId, $provider = 'BLACKLIST') {
        // Call inner function
-       insertGenericInBlacklist ('url', $url, $poolId, $provider);
+       return insertGenericInBlacklist ('url', $url, $poolId, $provider);
 }
 
 // Inserts a given URL in blacklist if not found
 }
 
 // Inserts a given URL in blacklist if not found
@@ -129,18 +153,9 @@ function insertGenericInBlacklist ($type, $data, $poolId = NULL, $provider = 'BL
                        strtoupper($type)
                ), __FUNCTION__, __LINE__);
        } // END - if
                        strtoupper($type)
                ), __FUNCTION__, __LINE__);
        } // END - if
-}
 
 
-// Checks whether given email is blacklisted
-function isEmailBlacklisted ($email) {
-       // Call inner function
-       return isGenericBlacklisted('email', $email);
-}
-
-// Checks whether given URL is blacklisted
-function isUrlBlacklisted ($url) {
-       // Call inner function
-       return isGenericBlacklisted('url', $email);
+       // Return insert id for debugging/reporting pursposes
+       return SQL_INSERT_ID();
 }
 
 // ----------------------------------------------------------------------------
 }
 
 // ----------------------------------------------------------------------------
@@ -183,5 +198,17 @@ function isEmailBlacklistEnabled () {
        return $GLOBALS[__FUNCTION__];
 }
 
        return $GLOBALS[__FUNCTION__];
 }
 
+// Wrapper to check if ip_blacklist is enabled
+function isIpBlacklistEnabled () {
+       // Is there cache?
+       if (!isset($GLOBALS[__FUNCTION__])) {
+               // Determine it
+               $GLOBALS[__FUNCTION__] = (getConfig('ip_blacklist') == 'Y');
+       } // END - if
+
+       // Return cache
+       return $GLOBALS[__FUNCTION__];
+}
+
 // [EOF]
 ?>
 // [EOF]
 ?>
index 2d6c8e719eb6647449807a168632aa4dad4910ca..0fe4451f876ad837aeed67ed0151984e1591dde4 100644 (file)
@@ -287,23 +287,25 @@ function doUserRegistration () {
                reportBug(__FUNCTION__, __LINE__, 'Tried to register a user account without ext-user installed.');
        } // END - if
 
                reportBug(__FUNCTION__, __LINE__, 'Tried to register a user account without ext-user installed.');
        } // END - if
 
+       // Init extra SQL data
+       initExtraRegistrationSql();
+
        // Init filter data
        $filterData = array(
                // Initialization not done by default
        // Init filter data
        $filterData = array(
                // Initialization not done by default
-               'init_done' => FALSE,
-               'post_data' => postRequestArray(),
+               'init_done'   => FALSE,
+               'post_data'   => postRequestArray(),
+               'blacklisted' => '',
+               'message'     => '{--PRE_USER_REGISTRATION_FAILED--}',
        );
 
        );
 
-       // Init extra SQL data
-       initExtraRegistrationSql();
-
        // Run the pre-registration chain
        $filterData = runFilterChain('pre_user_registration', $filterData);
 
        // Did the initialization work?
        if ($filterData['init_done'] === FALSE) {
                // Something bad happened!
        // Run the pre-registration chain
        $filterData = runFilterChain('pre_user_registration', $filterData);
 
        // Did the initialization work?
        if ($filterData['init_done'] === FALSE) {
                // Something bad happened!
-               displayMessage('{--PRE_USER_REGISTRATION_FAILED--}');
+               displayMessage($filterData['message']);
 
                // Stop here
                return FALSE;
 
                // Stop here
                return FALSE;
index d79da153624b55bf40f5590cb1dda081a4c46bdd..270d746505598f81015eef939c8a6e350de12fe5 100644 (file)
@@ -246,15 +246,17 @@ LIMIT 1',
                                if (postRequestElement('email') != $content['email']) {
                                        // Yes, but is it maybe blacklisted?
                                        $filterData = array(
                                if (postRequestElement('email') != $content['email']) {
                                        // Yes, but is it maybe blacklisted?
                                        $filterData = array(
-                                               'init_done' => TRUE,
-                                               'post_data' => postRequestArray()
+                                               'init_done'   => TRUE,
+                                               'post_data'   => postRequestArray(),
+                                               'blacklisted' => '',
+                                               'message'     => '{--PRE_UPDATE_USER_DATA_FAILED--}',
                                        );
                                        $filterData = runFilterChain('pre_update_user_data', $filterData);
 
                                        // Is it blacklisted?
                                        if ($filterData['init_done'] === FALSE) {
                                        );
                                        $filterData = runFilterChain('pre_update_user_data', $filterData);
 
                                        // Is it blacklisted?
                                        if ($filterData['init_done'] === FALSE) {
-                                               // Blacklisted email address found
-                                               displayMessage('{--MEMBER_EMAIL_BLACKLISTED--}');
+                                               // Found something blacklisted
+                                               displayMessage($filterData['message']);
                                                return;
                                        } // END - if
 
                                                return;
                                        } // END - if
 
index 3648fff52168598395e8b05210366aacc6eb0520..7ab90d77160033dba42b788650827d007b0704b4 100644 (file)
                        </div>
                </div>
 
                        </div>
                </div>
 
+               <div>
+                       <label class="admin_label" for="ip_blacklist">{--ADMIN_CONFIG_IP_BLACKLIST_ENABLED--}</label>
+                       <div align="center">
+                               {%template,ConfigurationYesNoSelectionBox=ip_blacklist%}
+                       </div>
+               </div>
+
                <div>
                        <label class="admin_label" for="url_blacklist">{--ADMIN_CONFIG_URL_BLACKLIST_ENABLED--}</label>
                        <div align="center">
                <div>
                        <label class="admin_label" for="url_blacklist">{--ADMIN_CONFIG_URL_BLACKLIST_ENABLED--}</label>
                        <div align="center">