- Updated the list of dnsbl_servers. (bugreport:6862)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16887 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
brianluau
2012-11-09 08:48:31 +00:00
parent 0ad26adc3c
commit db6a927d54
2 changed files with 13 additions and 3 deletions

View File

@@ -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)

View File

@@ -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;
}