{"id":13789738,"url":"https://github.com/onlinesid/tor-detector","last_synced_at":"2026-01-29T07:50:14.607Z","repository":{"id":57031819,"uuid":"70315352","full_name":"onlinesid/tor-detector","owner":"onlinesid","description":"Tor Detector - a library to detect if your website visitor is using TOR.","archived":false,"fork":false,"pushed_at":"2016-11-21T11:51:13.000Z","size":3,"stargazers_count":12,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-18T20:26:24.752Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/onlinesid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-08T08:09:57.000Z","updated_at":"2022-04-11T13:43:32.000Z","dependencies_parsed_at":"2022-08-23T18:50:49.226Z","dependency_job_id":null,"html_url":"https://github.com/onlinesid/tor-detector","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/onlinesid/tor-detector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onlinesid%2Ftor-detector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onlinesid%2Ftor-detector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onlinesid%2Ftor-detector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onlinesid%2Ftor-detector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onlinesid","download_url":"https://codeload.github.com/onlinesid/tor-detector/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onlinesid%2Ftor-detector/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28870723,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T07:35:32.468Z","status":"ssl_error","status_checked_at":"2026-01-29T07:33:31.463Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-08-03T22:00:32.385Z","updated_at":"2026-01-29T07:50:14.587Z","avatar_url":"https://github.com/onlinesid.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"# Tor Detector PHP library\nA library to detect if your website visitor is from a TOR network or not. \n\nAt the moment this is achieved by using a DNS lookup method as described in https://trac.torproject.org/projects/tor/wiki/doc/TorDNSExitList\n\n## Composer\n\nhttps://packagist.org/packages/onlinesid/tor-detector\n\n## Usage\n\n```php\n$tor_detector = new OnlineSid\\Tor\\TorDetector();\n\n$your_server_ip = '1.2.3.4'; // the IP address of your server (web server)\n$user_ip = '62.102.148.67'; // is this IP from TOR exit node?\n\nif ($tor_detector-\u003echeck($user_ip, 80, $your_server_ip)) {\n    echo \"Tor!\\n\";\n} else {\n    echo \"Not TOR!\\n\";\n}\n```\n\n## Credit\nOriginal code is taken from https://jrnv.nl/detecting-the-use-of-proxies-and-tor-network-6c240d6cc5f (it wasn't working but very close)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonlinesid%2Ftor-detector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonlinesid%2Ftor-detector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonlinesid%2Ftor-detector/lists"}