This PHP script retrieves the client's IP address and displays various data points about it, such as the city, region, and country the IP address is located in. It also includes a map that is centered on the location of the IP address, using the Leaflet JavaScript library.
- PHP 7.0 or later
- An active internet connection to retrieve data from the ip-api.com API
- Copy the script to your web server's document root.
- Open the script in your browser.
- The script will display the client's IP address and various data points about it.
- This script was created by Lucas.D .
- It uses the ip-api.com API to retrieve data about the client's IP address.
- The map display is powered by the Leaflet JavaScript library.