summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--conf/login_athena.conf14
-rw-r--r--src/login/login.c2
2 files changed, 13 insertions, 3 deletions
diff --git a/conf/login_athena.conf b/conf/login_athena.conf
index fa963a14c..11e1108f3 100644
--- a/conf/login_athena.conf
+++ b/conf/login_athena.conf
@@ -113,10 +113,20 @@ ipban_cleanup_interval: 60
//ip_sync_interval: 10
// DNS Blacklist Blocking
-// If enabled, each incoming connection will be tested against the blacklists
+// If enabled, each incoming connection will be tested against the blacklists
// on the specified dnsbl_servers (comma-separated list)
use_dnsbl: no
-dnsbl_servers: dnsbl.deltaanime.net
+dnsbl_servers: bl.blocklist.de, socks.dnsbl.sorbs.net
+// Here are some free DNS Blacklist Services: http://en.wikipedia.org/wiki/Comparison_of_DNS_blacklists
+//==============================================================================
+// dnsbl_servers Description
+// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+// bl.blocklist.de IP-Addresses who attack other servers/honeypots over SSH, FTP, IMAP, etc.
+// ircbl.ahbl.org AHBL (open proxies, compromised machines, comment spammers)
+// safe.dnsbl.sorbs.net All zones in dnsbl.sorbs.net except "recent" and "escalations"
+// sbl-xbl.spamhaus.org Spamhaus blacklist (spammers, open proxies)
+// socks.dnsbl.sorbs.net Open SOCKS proxy servers
+// tor.ahbl.org Current tor relay and exit nodes
// Which account engine to use.
// 'auto' selects the first engine available (txt, sql, then others)
diff --git a/src/login/login.c b/src/login/login.c
index 6afd61702..9efd28a53 100644
--- a/src/login/login.c
+++ b/src/login/login.c
@@ -999,7 +999,7 @@ int mmo_auth(struct login_session_data* sd, bool isServer)
for( dnsbl_serv = strtok(login_config.dnsbl_servs,","); !matched && dnsbl_serv != NULL; dnsbl_serv = strtok(NULL,",") )
{
- sprintf(ip_dnsbl, "%s.%s", r_ip, dnsbl_serv);
+ sprintf(ip_dnsbl, "%s.%s", r_ip, trim(dnsbl_serv));
if( host2ip(ip_dnsbl) )
matched = true;
}