Connection Map is a program that plots the location of incoming network connections to your server on a map. It searches through system log files for IP addresses, and then uses geolocation data to find the hosts’ approximate location. Connection Map can be used to find where your websites’ visitors come from, or find the location of bots that attempt to log in to your server.
The interactive map is built using the Leaflet map library, with map data from OpenStreetMap. GeoIP data comes from the MaxMind Geolite2 database.
You can view a live demo of Connection Map here. This instance shows connections to my server via HTTP and SSH. Blue dots indicate HTTP connections, and red dots indicate SSH connections.
You can download the source code for this program over at GitHub.