{"id":25065790,"url":"https://github.com/dubniczky/vpn-detect","last_synced_at":"2025-10-15T14:51:11.755Z","repository":{"id":160045579,"uuid":"521052194","full_name":"dubniczky/VPN-Detect","owner":"dubniczky","description":"VPN Detection in the browser using JavaScript","archived":false,"fork":false,"pushed_at":"2022-11-24T08:50:00.000Z","size":14,"stargazers_count":29,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-28T07:11:42.718Z","etag":null,"topics":["deanonymization","exploit","javascript","vpn-detection"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dubniczky.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"dubniczky","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2022-08-03T22:38:22.000Z","updated_at":"2025-03-09T06:42:41.000Z","dependencies_parsed_at":"2024-03-16T12:52:08.747Z","dependency_job_id":null,"html_url":"https://github.com/dubniczky/VPN-Detect","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dubniczky%2FVPN-Detect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dubniczky%2FVPN-Detect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dubniczky%2FVPN-Detect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dubniczky%2FVPN-Detect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dubniczky","download_url":"https://codeload.github.com/dubniczky/VPN-Detect/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248941481,"owners_count":21186915,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deanonymization","exploit","javascript","vpn-detection"],"created_at":"2025-02-06T19:45:02.065Z","updated_at":"2025-10-15T14:51:11.738Z","avatar_url":"https://github.com/dubniczky.png","language":"JavaScript","funding_links":["https://github.com/sponsors/dubniczky"],"categories":[],"sub_categories":[],"readme":"# VPN Detect\n\nVPN Detection in the browser using JavaScript\n\n## Usage\n\n1. Create an account and copy the API key to `detect.js`: https://ipgeolocation.io\n2. Open the `main.html` page\n3. Turn on your VPN and switch to another location\n4. Wait for the detection to show the result\n5. Turn off your VPN of choice, then reload the webpage or run `runDetect()` in the console.\n\n## Methodology\n\nVPNs are capable of hiding user information, such as IP address, which is usually an important aspect of approximating location. This method might not work 100% of the time, but from the testing, it's overwhelmingly accurate.\n\nThe way VPN usage is detected is by comparing the time-zone values from the bowser's built-in localization against the ISP information of an IP address.\n\nFor IP information acquisition, `ipgeolocation.io` services were used for the demo. In the case of such services, the detection must be done server-side to hide the API key.\n\nFinally, the estimated and the time-zone-based locations are compared. If they match, it's likely the user is not using a VPN (or proxy). Otherwise, in case of a significant difference, the use of a VPN is almost guaranteed, unless the user has misconfigured or purposefully modified the timezone settings of their device or browser.\n\n## References\n\n- Time zone information from: https://data.iana.org/time-zones/tzdb-2021a/zone1970.tab\n- Flag emoji script: https://dev.to/jorik/country-code-to-flag-emoji-a21\n- Time zone docs: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/ZonedDateTime#time_zones_and_offsets\n- Country codes, names and flags: https://gist.github.com/devhammed/78cfbee0c36dfdaa4fce7e79c0d39208","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdubniczky%2Fvpn-detect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdubniczky%2Fvpn-detect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdubniczky%2Fvpn-detect/lists"}