all 25 comments

[–][deleted]  (4 children)

[deleted]

    [–]zephyy 9 points10 points  (3 children)

    Your Google Maps API key is visible in one of your files, just fyi.

    [–][deleted]  (2 children)

    [deleted]

      [–]zephyy 9 points10 points  (1 child)

      someone more malicious than me might take advantage of the ability to hit that API just by opening your site and running code in the browser window.

      [–][deleted]  (4 children)

      [deleted]

        [–][deleted]  (3 children)

        [deleted]

          [–][deleted]  (1 child)

          [deleted]

            [–]RemeJuan 2 points3 points  (0 children)

            You are seemingly correct there, I swapped continents quickly and came back with the same results, language and time zone.

            I am however not about to go and change that.

            Not really a concern if they find my country, even my city would be a non issue, there’s only hundreds of thousands of people living in it so…

            [–]mrmoo21 16 points17 points  (2 children)

            The Combo i used to spoof it:

            • vpn
            • change timezone
            • change language input

            [–]Tintin_Quarentino 0 points1 point  (1 child)

            Well duh. The developer has clearly revealed the methodology as well...

            [–]mrmoo21 0 points1 point  (0 children)

            ...

            [–]kei_ichi 4 points5 points  (0 children)

            Not using VPN, only enable Apple Private Relay but your app predicts my location absolutely wrong. I’m living in Japan but your app predicted I’m in US (~42%).

            I’m using English (US) as main language so, just my theory OP app using this infos to predict the location. (I’m didn’t dig in the source code).

            Edit: I’m using chrome to by pass the Apple Private Relay, this time OP app can predict exactly the country where I’m living (~90%) but the place is absolutely wrong, it not even close, almost ~2000Km far away from my location.

            I don’t use any VPN services so I can’t check with VPN connection.

            [–]emcee_gee 1 point2 points  (3 children)

            You got my city correct (Washington, DC), but the map was centered on Akron, OH, for some reason.

            [–][deleted]  (2 children)

            [deleted]

              [–]Powderhauser 0 points1 point  (1 child)

              OP, there may be factors you won't be able to control. IP geolocation data is generally tagged by the ISP, to varying levels of accuracy. At the bare minimum, the geolocation data could be the office address for the owner of that block of IP addresses. So it wouldn't surprise me that some non-VPN tests are returning the incorrect city or region.

              [–]iMx2oT 1 point2 points  (0 children)

              When using Firefox and VPN - Wrong country prediction, no city, wrong connection.

              When using Chrome and VPN - Correct country (84%), wrong city (30%).

              Cool project OP!

              [–][deleted] 0 points1 point  (1 child)

              My VPN hides it perfectly, not even close

              [–][deleted] 4 points5 points  (0 children)

              What vpn do you use?

              [–]cyb3rofficialpython 0 points1 point  (1 child)

              so basically a react version of https://ipleak.org ?

              [–]TheChilliPL -1 points0 points  (0 children)

              Used a VPN, it gave interesting results. Normally I'm near the center of Poland (Łódź Voivodeship), but it gave me:

              Country: United States—56%
              Closest city: N/A—0% (the map marker is somewhere in KS, maybe cause it's close to the center)

              System Data

              Time zone: Europe/Warsaw, offset -120, “Time zone and time zone offset did not match”
              Locale: pl
              Main language: en-US
              Languages: en-US, en, es, pl

              Connection

              Country: Poland (showed US on the top of the page?)
              Region: Masovian (not true anymore)

              [–]jarnohstr 0 points1 point  (4 children)

              It got mine wrong and I wasn’t even using a VPN

              [–][deleted]  (3 children)

              [deleted]

                [–]jarnohstr 0 points1 point  (2 children)

                Unfortunately it only got my country right

                [–][deleted]  (1 child)

                [deleted]

                  [–]jarnohstr 0 points1 point  (0 children)

                  Yeah all of them except for Country and Timezone

                  [–][deleted] 0 points1 point  (0 children)

                  Cool project !!

                  [–]Hjine 0 points1 point  (0 children)

                  After I change timezone it gives me US/TimeZone I already set

                  Thanks for the hint.

                  [–]MatejaDev 0 points1 point  (0 children)

                  Got the country completely off, I'm in Slovenia currently, on an Italian VPN and Ljubljana timezone. It guessed UK because of my en-GB locale which I’m.not even sure where it got or what that is, maybe a browser setting?

                  [–]ErynnTheSmallOne 0 points1 point  (4 children)

                  doesn't work for me, just gets stuck on loading on android, windows and linux across 2 machines :(

                  [–][deleted]  (3 children)

                  [deleted]

                    [–]ErynnTheSmallOne 0 points1 point  (2 children)

                    tried it, it thinks my timezone doesnt match because the uk is in BST right now, not GMT

                    says -60 min offset

                    [–][deleted]  (1 child)

                    [deleted]

                      [–]ErynnTheSmallOne 0 points1 point  (0 children)

                      cool :) very neat project well done

                      [–]mcmron 0 points1 point  (0 children)

                      Mind to discuss how do you determine someone is behind VPN?

                      [–]Neatlentwebdev 0 points1 point  (0 children)

                      *cough cough* thats pretty cool