{"id":16932774,"url":"https://github.com/arp242/isbot","last_synced_at":"2025-03-22T12:31:20.945Z","repository":{"id":57520178,"uuid":"250409314","full_name":"arp242/isbot","owner":"arp242","description":"Go library to detect HTTP bots.","archived":false,"fork":false,"pushed_at":"2022-04-17T03:08:24.000Z","size":132,"stargazers_count":21,"open_issues_count":2,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-01T15:43:21.502Z","etag":null,"topics":["bot"],"latest_commit_sha":null,"homepage":null,"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/arp242.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},"funding":{"github":"arp242"}},"created_at":"2020-03-27T01:08:07.000Z","updated_at":"2024-12-20T10:03:24.000Z","dependencies_parsed_at":"2022-09-05T09:41:39.105Z","dependency_job_id":null,"html_url":"https://github.com/arp242/isbot","commit_stats":null,"previous_names":["zgoat/isbot"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arp242%2Fisbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arp242%2Fisbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arp242%2Fisbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arp242%2Fisbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arp242","download_url":"https://codeload.github.com/arp242/isbot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243835905,"owners_count":20355616,"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":["bot"],"created_at":"2024-10-13T20:47:35.222Z","updated_at":"2025-03-22T12:31:20.632Z","avatar_url":"https://github.com/arp242.png","language":"Go","funding_links":["https://github.com/sponsors/arp242"],"categories":[],"sub_categories":[],"readme":"Go library to detect bots based on the HTTP request. A \"bot\" is defined as any\nrequest that isn't a regular browser request initiated by the user. This\nincludes things like web crawlers, but also stuff like \"preview\" renderers and\nthe like.\n\n`Bot()` accepts a `http.Request` since it looks at *all* information, not just\nthe `User-Agent`. You can use `UserAgent()` if you just have a `User-Agent`, but\nit's highly recommended to use `Bot()`.\n\nImport as `zgo.at/isbot`; API docs: https://godocs.io/zgo.at/isbot\n\nThere is a command-line tool in `cmd/isbot` to check if User-Agents are bots:\n\n    $ isbot 'Mozilla/5.0 (X11; Linux x86_64; rv:88.0) Gecko/20100101 Firefox/88.0' 'Wget/1.13.4 (linux-gnu)'\n    false (1: NoBotNoMatch) ← Mozilla/5.0 (X11; Linux x86_64; rv:88.0) Gecko/20100101 Firefox/88.0\n    true  (4: BotClientLibrary) ← Wget/1.13.4 (linux-gnu)\n\nIt's not 100% reliable, and there are some known cases where it gets things\nwrong. See [`isbot_test.go`](/isbot_test.go) for a list of test cases.\n\nThe performance is pretty good; turns out that running a few `string.Contains()`\nis loads faster than a `(bot|crawler|search|...)` regexp.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farp242%2Fisbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farp242%2Fisbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farp242%2Fisbot/lists"}