Skip to content

Commit b9eb725

Browse files
authored
fix: more aggressive rate limit (#1053)
blocking bots
1 parent 63f1711 commit b9eb725

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export async function handler(req: IncomingMessage, res: ServerResponse) {
3535
console.log(`user-agent: ${userAgent}`);
3636
if (
3737
!userAgent ||
38-
userAgent === 'node' ||
38+
userAgent.startsWith('node') ||
3939
userAgent.startsWith('axios') ||
4040
userAgent.startsWith('got')
4141
) {

0 commit comments

Comments
 (0)