https://github.com/realzzz1874/koa-browser-bot
A middleware used to determine whether it is a browser bot.
https://github.com/realzzz1874/koa-browser-bot
bot middleware
Last synced: 5 months ago
JSON representation
A middleware used to determine whether it is a browser bot.
- Host: GitHub
- URL: https://github.com/realzzz1874/koa-browser-bot
- Owner: Realzzz1874
- License: mit
- Created: 2023-04-01T12:35:37.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-05-06T15:54:55.000Z (about 3 years ago)
- Last Synced: 2025-05-25T09:06:16.339Z (about 1 year ago)
- Topics: bot, middleware
- Language: TypeScript
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# koa-browser-bot
A middleware used to determine the req whether it is a browser bot.
## usage
```bash
yarn add koa-browser-bot
```
Then, you can use `ctx.bot` (String) to get the browser bot. If it is a empty string, it`s a normal request.