+// Filter to check URL against blacklist
+function FILTER_CHECK_URL_BLACKLISTED ($filterData) {
+ //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
+ // And shall I check that his URL is not in the black list?
+ if ((isUrlBlacklistEnabled()) && (isUrlBlacklisted($filterData['url']))) {
+ // Create redirect-URL
+ $filterData['redirect'] = 'modules.php?module=login&what=order&code=' . getCode('BLIST_URL') . '&blist=' . $GLOBALS['blacklist_data'][$filterData['url']]['timestamp'];
+ $GLOBALS['filter_chain_aborted'] = TRUE;
+
+ // Set data for next filter chain
+ $filterData['init_done'] = FALSE;
+ $filterData['blacklisted'] = 'url';
+ $filterData['message'] = '{--URL_IS_BLACKLISTED--}';
+
+ // Run filter chain for successful detection (don't rely on other fields than 'IP') here
+ runFilterChain('post_url_blacklisted', $filterData);
+ } // END - if
+
+ // Return the data for next filter
+ //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
+ return $filterData;
+}
+