Pinpoint: Gotcha

I have created Pinpoint: A tool that uses your IP to find you, without you giving it permissions.

It isn’t QUITE accurate. Let me know how far off it was (in a way that doesn’t expose your location :wink: )

It’s still in beta state. I will add assets and such later!

1 Like

how do you collect all the IP address to city association?

he uses ipapi, check the script file

1 Like

btw quick tip to improve your privacy: to make this less accurate and make fingerprinting you harder, you can use a vpn. I recommend using proton vpn, which has a free plan with unlimited data, or cloudflare warp, which even though doesn’t let you choose a country is pretty fast and can sometimes make it less accurate.

any server has access to your IP address, even without doing anything on the client-side. I’m guessing miles used ipapi to not need to set up his own server.

You are correct. I didn’t want to bother with that stuff. If I mess up, bad news for security. I don’t store ip addresses.

it’s really not that hard. just set this in an express server:

app.set("trust proxy", 4)

And then use req.ip. You don’t really risk anything, it’s in fact more safer since you don’t have to rely on another server that might be storing ips.

I am using just an HTML / CSS / JS stack. Not express.

yeah but if you were to use your own server (for privacy reasons and/or to make it faster) you could use Express and the method above

How would I get location data in such?

Also I don’t know node.js

this is just one example: https://www.maxmind.com/en/geoip-databases

you should try it :slight_smile: bun is also really cool

It very correctly located the city and country I’m in although I can’t check the longitude and latitude. Why isn’t it accurate?

The database they use to geolocate your IP is never going to be 100% accurate and while services like maxmind try to make it as accurate as possible there are still a a bunch of technical limitations and privacy concerns