Skip to content

Commit 34628d4

Browse files
committed
chore: add hidden honeypot fields
1 parent 24f4e3f commit 34628d4

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

apps/www/components/ui/contact.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ const Contact = () => {
3737
<form action="https://submit-form.com/nItcloafD">
3838
<input type="hidden" name="form_name" value="contact_form" />
3939
<input type="hidden" name="_redirect" value="https://amical.ai/contact?submission=true" />
40+
<input
41+
type="checkbox"
42+
name="_is_valid_email"
43+
className="hidden"
44+
tabIndex={-1}
45+
autoComplete="off"
46+
/>
4047
<div className="grid gap-4 md:grid-cols-2">
4148
<div className="grid w-full items-center gap-1.5">
4249
<Label htmlFor="firstname">

apps/www/components/ui/subscription-form.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ export function SubscriptionForm({
4646
<form action="https://submit-form.com/nItcloafD" className={`flex flex-col ${variant === 'blog' ? 'items-center' : ''} gap-4`}>
4747
<input type="hidden" name="form_name" value={formName} />
4848
<input type="hidden" name="_redirect" value={redirectUrl} />
49+
<input
50+
type="checkbox"
51+
name="_is_valid_email"
52+
className="hidden"
53+
tabIndex={-1}
54+
autoComplete="off"
55+
/>
4956
<div className={`flex ${variant === 'blog' ? 'w-full max-w-md' : ''} gap-2`}>
5057
<Input placeholder="Enter your email" type="email" name="email" required />
5158
<Button type="submit">Subscribe</Button>

0 commit comments

Comments
 (0)