{"id":22374892,"url":"https://github.com/qubitproducts/funnelweb","last_synced_at":"2025-03-26T17:33:20.340Z","repository":{"id":66964760,"uuid":"73407171","full_name":"QubitProducts/funnelweb","owner":"QubitProducts","description":"Detect spiders/crawlers/bots by their User-Agent strings.","archived":false,"fork":false,"pushed_at":"2019-06-17T19:49:10.000Z","size":84,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-31T22:49:29.939Z","etag":null,"topics":["ceh","cmh","implement"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/QubitProducts.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2016-11-10T17:56:18.000Z","updated_at":"2023-06-02T12:06:49.000Z","dependencies_parsed_at":"2023-02-27T12:15:50.527Z","dependency_job_id":null,"html_url":"https://github.com/QubitProducts/funnelweb","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QubitProducts%2Ffunnelweb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QubitProducts%2Ffunnelweb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QubitProducts%2Ffunnelweb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QubitProducts%2Ffunnelweb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/QubitProducts","download_url":"https://codeload.github.com/QubitProducts/funnelweb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245702489,"owners_count":20658625,"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":["ceh","cmh","implement"],"created_at":"2024-12-04T21:18:53.134Z","updated_at":"2025-03-26T17:33:20.334Z","avatar_url":"https://github.com/QubitProducts.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# funnelweb [![Build Status](https://secure.travis-ci.org/presentcompany/funnelweb.png?branch=master)](http://travis-ci.org/presentcompany/funnelweb) #\n\nTries to detect if a request is coming from a machine or a person using a\nregular expression. Bot and browser `User-Agent` strings sourced from\n[useragentstring.com](http://www.useragentstring.com/pages/useragentstring.php).\n\n## Installation ##\n\n``` bash\n$ npm install funnelweb\n```\n\n## Usage ##\n\nFunnelweb just takes a user agent string and returns \"true\" if it's probably a bot, or \"false\" otherwise.\n\n``` javascript\nvar funnelweb = require('funnelweb')\n\nfunnelweb('GoogleBot') // true\nfunnelweb('Google Chrome') // false\n```\n\nIf you pass it an HTTP request object, it'll read the User-Agent header and do\nthe same:\n\n``` javascript\nvar funnelweb = require('funnelweb')\n  , http = require('http')\n\nhttp.createServer(function(req, res) {\n  var response = funnelweb(req)\n\n  if (bot) {\n    res.end('you are a bot')\n  } else {\n    res.end('you are not a bot')\n  }\n}).listen(3000)\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqubitproducts%2Ffunnelweb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqubitproducts%2Ffunnelweb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqubitproducts%2Ffunnelweb/lists"}