File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed
apps/docs/app/api/ambassador/submit Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -96,20 +96,20 @@ function validateFormData(data: unknown): { valid: boolean; errors: string[] } {
9696
9797export 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 ) ;
You can’t perform that action at this time.
0 commit comments