Skip to content

Commit d9948e9

Browse files
committed
remove bot
1 parent 7e1ba15 commit d9948e9

File tree

1 file changed

+14
-14
lines changed
  • apps/docs/app/api/ambassador/submit

1 file changed

+14
-14
lines changed

apps/docs/app/api/ambassador/submit/route.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -96,20 +96,20 @@ function validateFormData(data: unknown): { valid: boolean; errors: string[] } {
9696

9797
export async function POST(request: NextRequest) {
9898
try {
99-
// Bot protection
100-
const verification = await checkBotId();
101-
102-
if (verification.isBot) {
103-
await logger.warning(
104-
'Ambassador Form Bot Attempt',
105-
'Bot detected trying to submit ambassador form',
106-
{
107-
botScore: verification.isBot,
108-
userAgent: request.headers.get('user-agent'),
109-
}
110-
);
111-
return NextResponse.json({ error: 'Access denied' }, { status: 403 });
112-
}
99+
// Bot protection - DISABLED
100+
// const verification = await checkBotId();
101+
102+
// if (verification.isBot) {
103+
// await logger.warning(
104+
// 'Ambassador Form Bot Attempt',
105+
// 'Bot detected trying to submit ambassador form',
106+
// {
107+
// botScore: verification.isBot,
108+
// userAgent: request.headers.get('user-agent'),
109+
// }
110+
// );
111+
// return NextResponse.json({ error: 'Access denied' }, { status: 403 });
112+
// }
113113

114114
// Rate limiting
115115
const clientIP = getClientIP(request);

0 commit comments

Comments
 (0)