Over the past week or so, all of my various sites' Watchdog event listings have displayed "Error" under the IP Location. I think I'm correct in reasoning that this portion of the Watchdog event page was added by Autoban. Previously, the IP Location would have been something like "Russia" (if it were a Russian IP, for example), or a city, state, country, or occasionally blank. Having the location information is valuable in deciding whether to ban a suspicious "page not found" entry, for example if somebody is probing for a security.txt file.

Comments

lastar84 created an issue. See original summary.

lastar84’s picture

Well, a little more investigative work, and I found the answer. In autoban.module a function autoban_get_ip_location connects to freegeoip.net to search for IP country, region, and city information. As of July 1, 2018, this free service has changed, according to an announcement posted on GitHub:

Launched more than 6 years ago, the freegeoip.net API has grown into one of the biggest and most widely used APIs for IP to location services worldwide. The API is used by thousands of developers, SMBs and large corporations around the globe and is currently handling more than 2 billion requests per day. After years of operation and the API remaining almost unchanged, today we announce the complete re-launch of freegeoip into a faster, more advanced and more scalable API service called ipstack (https://ipstack.com). All users that wish to continue using our IP to location service will be required to sign up to obtain a free API access key and perform a few simple changes to their integration. While the new API offers the ability to return data in the same structure as the old freegeoip API, the new API structure offers various options of delivering much more advanced data for IP Addresses.

goodboy’s picture

Thanks advanced, lastar84. Now this geolocatino service need an API key and I have to add module settings "Ipstack.com API key".

  • goodboy committed 5482486 on 7.x-1.x
    #2984015 : Autoban Watchdog Event Extras - IP Location displays "Error"
    
goodboy’s picture

Please, try latest dev-version.
You need put your ipstack.com API key to /admin/config/people/autoban/settings

goodboy’s picture

Status: Active » Fixed
goodboy’s picture

Status: Fixed » Closed (fixed)
goodboy’s picture