Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #2
lastar84 CreditAttribution: lastar84 commentedWell, 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:
Comment #3
goodboyThanks advanced, lastar84. Now this geolocatino service need an API key and I have to add module settings "Ipstack.com API key".
Comment #5
goodboyPlease, try latest dev-version.
You need put your ipstack.com API key to /admin/config/people/autoban/settings
Comment #6
goodboyComment #7
goodboyComment #8
goodboy