<categoryname>security.blacklist.custom</categoryname>
<optiontype>textarea</optiontype>
</option>
- <option name="blacklist_hostnames">
- <categoryname>security.blacklist.custom</categoryname>
- <optiontype>textarea</optiontype>
- </option>
<!-- /security.blacklist.custom -->
<!-- security.antispam.captcha -->
<option name="captcha_type">
<option name="session_validate_ip_address" />
<option name="session_validate_user_agent" />
<option name="session_enable_virtualization" />
+ <option name="blacklist_hostnames" />
</delete>
</data>
define('SIGNATURE_SECRET', '');
define('BLACKLIST_IP_ADDRESSES', '');
define('BLACKLIST_USER_AGENTS', '');
-define('BLACKLIST_HOSTNAMES', '');
define('CAPTCHA_TYPE', 'com.woltlab.wcf.recaptcha');
define('REGISTER_USE_CAPTCHA', 1);
define('LOST_PASSWORD_USE_CAPTCHA', 1);
// https://github.com/WoltLab/WCF/issues/3674
\define('REGISTER_ADMIN_NOTIFICATION', 0);
+ // The hostname blocklist was removed in 5.4.
+ // https://github.com/WoltLab/WCF/issues/3909
+ \define('BLACKLIST_HOSTNAMES', '');
+
$filename = WCF_DIR . 'options.inc.php';
// create options file if doesn't exist
}
}
}
- if (\defined('BLACKLIST_HOSTNAMES') && BLACKLIST_HOSTNAMES != '') {
- if (!StringUtil::executeWordFilter(@\gethostbyaddr(UserUtil::getIpAddress()), BLACKLIST_HOSTNAMES)) {
- if ($isAjax) {
- throw new AJAXException(
- self::getLanguage()->getDynamicVariable('wcf.ajax.error.permissionDenied'),
- AJAXException::INSUFFICIENT_PERMISSIONS
- );
- } else {
- throw new PermissionDeniedException();
- }
- }
- }
+
// handle banned users
if (self::getUser()->userID && self::getUser()->banned && !self::getUser()->hasOwnerAccess()) {
\define('BLACKLIST_IP_ADDRESSES', '');
\define('BLACKLIST_USER_AGENTS', '');
-\define('BLACKLIST_HOSTNAMES', '');
\define('CACHE_SOURCE_TYPE', 'disk');
\define('IMAGE_ADAPTER_TYPE', 'gd');
<item name="wcf.acp.notice.showOrder.description"><![CDATA[Legt die Reihenfolge fest, in der die Hinweise angezeigt werden.]]></item>
</category>
<category name="wcf.acp.option">
- <item name="wcf.acp.option.blacklist_hostnames"><![CDATA[Hostname ausschließen]]></item>
- <item name="wcf.acp.option.blacklist_hostnames.description"><![CDATA[Ein Hostname pro Zeile]]></item>
<item name="wcf.acp.option.blacklist_ip_addresses"><![CDATA[IP-Adresse ausschließen]]></item>
<item name="wcf.acp.option.blacklist_ip_addresses.description"><![CDATA[Eine Adresse pro Zeile]]></item>
<item name="wcf.acp.option.blacklist_user_agents"><![CDATA[Browser-Kennung ausschließen]]></item>
<item name="wcf.acp.notice.showOrder.description"><![CDATA[Choose display order of notices.]]></item>
</category>
<category name="wcf.acp.option">
- <item name="wcf.acp.option.blacklist_hostnames"><![CDATA[Block by Hostname]]></item>
- <item name="wcf.acp.option.blacklist_hostnames.description"><![CDATA[You can specify which hostnames will be blacklisted. Enter one hostname per line.]]></item>
<item name="wcf.acp.option.blacklist_ip_addresses"><![CDATA[Block by IP Address]]></item>
<item name="wcf.acp.option.blacklist_ip_addresses.description"><![CDATA[You can specify which IP addresses will be blacklisted. Enter one IP address per line.]]></item>
<item name="wcf.acp.option.blacklist_user_agents"><![CDATA[Block by User-Agent]]></item>