wedi / limit-login-countries

This WordPress plugin gives you the ability to limit WordPress admin logins based on the country the visitor's IP address is located in.
http://wordpress.org/plugins/limit-login-countries/
GNU General Public License v2.0
1 stars 1 forks source link

DNSBL support #7

Open tlk opened 9 years ago

tlk commented 9 years ago

I forked the stable branch and have added basic support for DNSBL as an alternative to the static GeoIP database file. See http://countries.nerd.dk and http://noc.bit.nl/dnsbl/ascc/ for details on DNS based ip-to-country mapping services. Let me know if you are interested in this.

wedi commented 9 years ago

Hi Thomas, I am interested. Pushing the plugin fully functional to the users without them needing to download or setup anything except the countries sounds very appealing to me. Unfortunately I’ll be afk for some time as I had a skiing accident but as soon as I recover I’ll be more than happy to include your code (with the option to return to the GeoIP database used so far).

tlk commented 9 years ago

Hi Dirk I'm sorry to hear about your accident --- hope you'll recover soon!

I'm currently using the dnsbl-fork in a single wordpress installation and consider it a working proof of concept, but I haven't tested critical scenarios such as what happens when the DNSBL name server:

I suggest two fallback strategies:

I believe that the current dnsbl-fork simply rejects all ip addresses in case of failure.

tlk commented 9 years ago

The bruteforcelogin.bl.blocklist.de service from http://www.blocklist.de/en/rbldns.html is also interesting.