On 8/22/2005 3:34 PM, Derek Harding wrote: > On Sun, 2005-08-21 at 20:05 -0400, Eric A. Hall wrote: > >>What's the benefit of using this instead of the uridnsbl plugin? The code >>below will look for the IP address behind a URI and then query the >>cn-kr.blackholes.us RBL to see if that addr is in China: > > This one doesn't require a DNS lookup which makes it faster.
IP::Country use Whois lookups instead though, and UDP/DNS lookups are going to be faster than chained TCP/Whois queries. > blackholes.us only covers a limited set. Just an example for discussion purposes (worth noting that their main web site is down too). http://countries.nerd.dk/more.html is another one I'll play with the plugin and see what kind of times and load I get -- Eric A. Hall http://www.ehsco.com/ Internet Core Protocols http://www.oreilly.com/catalog/coreprot/