Require solved captcha before sending any email

AI-generated summary

The discussion focuses on optimizing the placement of the CAPTCHA verification step during the Discourse sign-up process to improve email deliverability. sicco raised the issue that the current implementation displays the CAPTCHA only after the system has already sent the email verification (login code). This ordering allows bots to spam invalid or random email addresses, which negatively impacts the site’s reputation with email service providers. sicco characterized this as a regression, noting that older versions of Discourse required solving the CAPTCHA before any email was sent.

sam responded that this is not a bug but rather a design choice, yet agreed that requiring the CAPTCHA before the login code is sent is a reasonable and fair change to add friction for bots without being overly burdensome for legitimate users. RGJ reinforced the necessity of this change, highlighting that they are witnessing an increasing number of spam abuse reports specifically related to “account created” email notifications.

keegan agreed with the assessment, stating that while it isn’t technically a bug, changing the order of operations is worthwhile. keegan subsequently confirmed that the implementation has been updated to require the solved CAPTCHA prior to sending any email, referencing the specific pull request https://github.com/discourse/discourse/pull/46867 where this change was made.

Currently when you register a new account, the captcha plugin shows the captcha after verifying your email address (i.e. the ‘login code’ mail). This defeats part of the purpose of the captcha as you want to prevent bots from sending verification emails to random or invalid email address as this will hurt your email deliverability with your email service provider. I consider this a bug/regression, as the old Discourse sign-up form did require you to solve the captcha before sending the verification email.

4 Likes

@keegan thoughts, I don’t think this is a bug , it is asking to redo the place of CAPTCHA in the pipeline, I think it is fair to make it a bit more annoying here.

We should not go the full Anthropic with CAPTCHAs, but forcing a solve prior to login code seems fine to me.

3 Likes

Yes, this is certainly becoming more and more of a problem, we are seeing an increasing amount of spam abuse reports on “account created” email notifications.

1 Like

Yes I agree, not a bug but worth the change the order. I will take a look at implementing that change :+1:

3 Likes

This will be updated with:

5 Likes