chrismuntean / QR-Code-Location-Tracker

Track IP location of clients once they scan a QR code (and force them to be on WiFi & not connected to a VPN for an accurate detection)

Home Page:https://replit.com/@ChrisMuntean/QR-Code-Tracker-V04?v=1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Track QR-Codes by IP address geolocation

Run your IP address in Repl here: https://swan-v04.chrismuntean.repl.co/getlocation.php

See the list of collected locations here: https://swan-v04.chrismuntean.repl.co/index.php

This web server uses IP address locating to collect data from the client after scanning a QR-code. Since this site uses this locationing method this site does not have to ask the client for their location; however, this means that this site only get locations accurate to the city. This also means that the client has to connect to wifi in order for it to collect the most accurate data as possible. This server also has file managing that will reset, and delete the data so there will be no more that 10 connection data files at one time.

BigData API: https://www.bigdatacloud.com/ Google Maps JS API: https://developers.google.com/maps/documentation/javascript/overview

Example from the BigDataCloud.com API output:

"ip": "96.35.37.111",
"localityName": "St. Louis County",
"isoPrincipalSubdivision": "Missouri",
"isoAlpha3": "USA",
"latitude": 38.56,
"longitude": -90.53,

This, as well as some other common server-side file creation date and time data are all the data this site needs to collect to make this site work.

Google Maps API

This site uses Google's javascript maps API in order to take the coordinates recieved from BigDataCloud's API in order to place those points on the map. Google does not track your exact location.

Code input to Google's API:

//pin 1 vars
var maponelat = <?= $maponephp->location->latitude; + x?>;
var maponelong = <?= $maponephp->location->longitude + x?>;

About

Track IP location of clients once they scan a QR code (and force them to be on WiFi & not connected to a VPN for an accurate detection)

https://replit.com/@ChrisMuntean/QR-Code-Tracker-V04?v=1


Languages

Language:PHP 79.5%Language:CSS 10.7%Language:Hack 5.6%Language:JavaScript 4.2%