This script will get the user's location by making a request to ipinfo.io, and then simply redirect the user to google maps with their aproximate location. This can be used to actually dox people, however PHP would be better as the source will not say that you are logging their location.
Pur this script in a new .html file:
Pur this script in a new .html file: