summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-11-09 08:48:31 +0000
committerbrianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-11-09 08:48:31 +0000
commitefd18cd458526cc26dd0394a69de16aadb50e0eb (patch)
tree1adbf61e08c8c9d40db71ba26cbd49f730524ea2
parent804dd86ce4d81750081c85d4c15fa9d20c67fc80 (diff)
downloadhercules-efd18cd458526cc26dd0394a69de16aadb50e0eb.tar.gz
hercules-efd18cd458526cc26dd0394a69de16aadb50e0eb.tar.bz2
hercules-efd18cd458526cc26dd0394a69de16aadb50e0eb.tar.xz
hercules-efd18cd458526cc26dd0394a69de16aadb50e0eb.zip
- Updated the list of dnsbl_servers. (bugreport:6862)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16887 54d463be-8e91-2dee-dedb-b68131a5f0ec
-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;
}