{"id":16445554,"url":"https://github.com/stephenafamo/isbot","last_synced_at":"2025-08-20T22:08:15.214Z","repository":{"id":61626693,"uuid":"543990029","full_name":"stephenafamo/isbot","owner":"stephenafamo","description":"Detect bots/crawlers/spiders using the user agent string.","archived":false,"fork":false,"pushed_at":"2023-10-16T14:54:31.000Z","size":445,"stargazers_count":18,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-04T14:21:40.711Z","etag":null,"topics":["bot-detection","bot-detector","crawler-detection","golang","oktoberfest","user-agent"],"latest_commit_sha":null,"homepage":"","language":"Go","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/stephenafamo.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-01T10:47:13.000Z","updated_at":"2023-10-16T01:33:56.000Z","dependencies_parsed_at":"2024-10-28T15:55:05.045Z","dependency_job_id":null,"html_url":"https://github.com/stephenafamo/isbot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stephenafamo/isbot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephenafamo%2Fisbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephenafamo%2Fisbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephenafamo%2Fisbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephenafamo%2Fisbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stephenafamo","download_url":"https://codeload.github.com/stephenafamo/isbot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephenafamo%2Fisbot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271393803,"owners_count":24751780,"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","status":"online","status_checked_at":"2025-08-20T02:00:09.606Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["bot-detection","bot-detector","crawler-detection","golang","oktoberfest","user-agent"],"created_at":"2024-10-11T09:44:44.478Z","updated_at":"2025-08-20T22:08:15.197Z","avatar_url":"https://github.com/stephenafamo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IsBot\n\nDetect bots/crawlers/spiders using the user agent string.\n\nUsing a list downloaded from \u003chttps://user-agents.net\u003e, the regexes in this package hit a 90% detection rate.  \nIf nothing matches, it also checks if the user agent is present in the list.\n\n## Usage\n\n```go\nimport \"github.com/stephenafamo/isbot\"\n\nfunc main() {\n    userAgent := \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.0.0 Safari/537.36 Chrome-Lighthouse\"\n    isBot := isbot.Check(userAgent)\n    if isBot {\n        // do something\n    }\n}\n```\n\n## Sources\n\nThe sources for detection are:\n\n* \u003chttps://github.com/monperrus/crawler-user-agents\u003e\n* \u003chttps://user-agents.net\u003e\n* A manual list\n\n## Contributing\n\nRun `go generate` to refresh the lists from the sources.\n\nIf something is misisng, send in a pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephenafamo%2Fisbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstephenafamo%2Fisbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephenafamo%2Fisbot/lists"}