<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/a-bot-added-around-5-000-addresses-to-my-newsletter-xvtlbpexa" -->

---
title: A bot added around 5,000 addresses to my newsletter
description: A newsletter signup form was hit by a bot attack that submitted roughly 5,000 fake addresses, discovered only through a flood of out-of-office auto-replies....
canonical: https://daily.dev/posts/a-bot-added-around-5-000-addresses-to-my-newsletter-xvtlbpexa
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: A bot added around 5,000 addresses to my newsletter | daily.dev
og:description: A newsletter signup form was hit by a bot attack that submitted roughly 5,000 fake addresses, discovered only through a flood of out-of-office auto-replies....
og:url: https://daily.dev/posts/a-bot-added-around-5-000-addresses-to-my-newsletter-xvtlbpexa
og:image: https://api.daily.dev/og/posts/xVtlbPExA.png
og:image:alt: A bot added around 5,000 addresses to my newsletter
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# A bot added around 5,000 addresses to my newsletter

**[Flavio Copes](https://daily.dev/sources/flaviocopes)** · 5 min read · 0 upvotes · 0 comments

## Summary

A newsletter signup form was hit by a bot attack that submitted roughly 5,000 fake addresses, discovered only through a flood of out-of-office auto-replies. Double opt-in kept most fake addresses from becoming active, but 34 slipped through as confirmed, and the underlying Sendy endpoint was still exposed to direct, unprotected submissions. The fix involved routing signups through a Cloudflare Pages Function that validates an allow-list, enforces a per-IP rate limit (5 attempts per 10 minutes via Cloudflare KV), verifies Cloudflare Turnstile tokens server-side (checking action and hostname, not just success), and blocks direct public access to the Sendy API. A dry-run-capable CLI cleanup tool was used to purge the fraudulent records afterward.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://flaviocopes.com/newsletter-spam-attack>

## Questions this post answers

### Is double opt-in enough to stop bots from spamming a newsletter signup form?

No, double opt-in alone is not enough. It prevents unconfirmed fake addresses from joining the active list, but it does not stop the signup endpoint itself from being flooded with thousands of bot submissions, triggering mass confirmation emails, bounces, and out-of-office auto-replies, and it does not prevent some fraudulent addresses from slipping through to confirmed status.

_Developers hardening signup forms can compare bot-protection approaches like this on daily.dev._

### Why is a Cloudflare Turnstile widget on a form not enough to block bots?

Because a bot can bypass the browser entirely and call the form's backend endpoint directly, skipping the widget altogether. The token Turnstile generates must be verified server-side, checking not just the success flag but also that the token's action and hostname match the expected form, so a token stolen or reused from another site or form is rejected.

_Anyone locking down a public form endpoint can track patterns like this via daily.dev._

### How can I stop bots from calling my email provider's signup API directly instead of going through my website form?

Route submissions through a server-side proxy that holds the provider's API key, rather than letting the browser post directly to the provider, and block direct public submissions to the mailing list on the provider's own server. One implementation uses a Cloudflare Pages Function sitting between the browser and Sendy, checking an allow-list, a rate limit, and a verified Turnstile token before calling Sendy's authenticated API.

_Teams protecting signup flows from abuse can follow architecture patterns like this on daily.dev._

## Similar posts on daily.dev

- [Your sign-up form is a weapon](https://daily.dev/posts/your-sign-up-form-is-a-weapon-cwnsa8fnc) · Hacker News · 0 upvotes · 0 comments
- [Stop Bots From Spamming Your ConvertKit Form](https://daily.dev/posts/stop-bots-from-spamming-your-convertkit-form-gezejsgej) · Pragmatic Pineapple · 0 upvotes · 0 comments
- [Schneier on Security](https://daily.dev/posts/schneier-on-security-wcigreann) · Schneier on Security · 0 upvotes · 0 comments
- [How I Stop Fake Signups From Farming Free Credits \(JS/Python\)](https://daily.dev/posts/how-i-stop-fake-signups-from-farming-free-credits-js-python--r9gwj3ryz) · Medium · 1 upvotes · 0 comments
- [Inside a bot operator’s email verification infrastructure](https://daily.dev/posts/inside-a-bot-operator-s-email-verification-infrastructure-dguzjanmm) · Security Boulevard · 0 upvotes · 0 comments

---

[View this post on daily.dev](https://daily.dev/posts/a-bot-added-around-5-000-addresses-to-my-newsletter-xvtlbpexa)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"A bot added around 5,000 addresses to my newsletter","url":"https://daily.dev/posts/a-bot-added-around-5-000-addresses-to-my-newsletter-xvtlbpexa","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/a-bot-added-around-5-000-addresses-to-my-newsletter-xvtlbpexa"},"datePublished":"2026-08-29T13:21:17.011Z","dateModified":"2026-08-29T13:21:41.751Z","description":"A newsletter signup form was hit by a bot attack that submitted roughly 5,000 fake addresses, discovered only through a flood of out-of-office auto-replies....","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/4ec9d9c1561ed487c8989996687c4e4e?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/4ec9d9c1561ed487c8989996687c4e4e?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Flavio Copes","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Flavio Copes","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/1f2dbd275797411bbd37bfdaaf0951a9","url":"https://daily.dev/sources/flaviocopes"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/a-bot-added-around-5-000-addresses-to-my-newsletter-xvtlbpexa","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Flavio Copes","item":"https://daily.dev/sources/flaviocopes"},{"@type":"ListItem","position":3,"name":"A bot added around 5,000 addresses to my newsletter"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/a-bot-added-around-5-000-addresses-to-my-newsletter-xvtlbpexa#faq","mainEntity":[{"@type":"Question","name":"Is double opt-in enough to stop bots from spamming a newsletter signup form?","acceptedAnswer":{"@type":"Answer","text":"No, double opt-in alone is not enough. It prevents unconfirmed fake addresses from joining the active list, but it does not stop the signup endpoint itself from being flooded with thousands of bot submissions, triggering mass confirmation emails, bounces, and out-of-office auto-replies, and it does not prevent some fraudulent addresses from slipping through to confirmed status. Developers hardening signup forms can compare bot-protection approaches like this on daily.dev."}},{"@type":"Question","name":"Why is a Cloudflare Turnstile widget on a form not enough to block bots?","acceptedAnswer":{"@type":"Answer","text":"Because a bot can bypass the browser entirely and call the form's backend endpoint directly, skipping the widget altogether. The token Turnstile generates must be verified server-side, checking not just the success flag but also that the token's action and hostname match the expected form, so a token stolen or reused from another site or form is rejected. Anyone locking down a public form endpoint can track patterns like this via daily.dev."}},{"@type":"Question","name":"How can I stop bots from calling my email provider's signup API directly instead of going through my website form?","acceptedAnswer":{"@type":"Answer","text":"Route submissions through a server-side proxy that holds the provider's API key, rather than letting the browser post directly to the provider, and block direct public submissions to the mailing list on the provider's own server. One implementation uses a Cloudflare Pages Function sitting between the browser and Sendy, checking an allow-list, a rate limit, and a verified Turnstile token before calling Sendy's authenticated API. Teams protecting signup flows from abuse can follow architecture patterns like this on daily.dev."}}]}
```

