A Bot Signed Politicians Up to My Laravel Newsletter. 9 Got Through, Then 93 Didn't
A bot used my Laravel newsletter form to flood politicians' inboxes. The honeypot and throttle missed every signup. Here is what stopped it.
On the morning of 19 November my phone showed eight new newsletter subscribers in under an hour and a half. Six of the addresses ended in @bundestag.de, the German parliament. One was at the European Commission. None of those people wanted my Laravel tips.
My Laravel form had a honeypot, a rate limit and email validation. So how did eight bot signups end up as active subscribers in my newsletter provider?
Two layers I added that same morning have stopped every attempt since. By the morning of 20 November that was 93 of them, and none had got through.
What subscription bombing is
The attack has a name. In subscription bombing, a bot types a victim's email address into hundreds or thousands of signup forms across the web. Each site sends a welcome or confirmation email, and the victim's inbox floods. The flood buries real emails the attacker doesn't want seen, like a password reset or a bank alert.
So my site wasn't the target. It was one of the tools. That also explains why it looked so polite. One signup per victim per site is all the attack needs.
How I knew it was a bot
The addresses alone were suspicious. The access log settled it. Here are the POSTs to the form that morning (UTC, Cloudflare edge IP, status, response size, user agent):
[19/Nov/2026:05:16:36 172.71.144.92 200 119 Mozilla/5.0 (X11; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/125.0
[19/Nov/2026:05:22:22 172.70.250.188 200 119 Mozilla/5.0 (iPhone; CPU iPhone OS 17_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4 Mobile/15E148 Safari/604.1
[19/Nov/2026:05:36:21 172.71.148.170 200 119 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4 Safari/605.1.15
[19/Nov/2026:05:47:22 172.71.164.89 200 119 Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0
[19/Nov/2026:06:16:35 172.70.250.189 200 119 Mozilla/5.0 (iPhone; CPU iPhone OS 17_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4 Mobile/15E148 Safari/604.1
[19/Nov/2026:06:30:31 162.158.94.239 200 119 Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0
Four different "browsers", all versions from spring 2024, rotated on every request. The real client IPs (which Laravel sees through Cloudflare's forwarded headers) were two addresses in Amsterdam datacenter ranges that VPN services use. A real visitor doesn't switch from an iPhone to Windows Firefox between signups.
The first address it tried wasn't a politician at all. Two days earlier, from the same IP, the bot had signed up an address on jud3.dev. That domain's MX records point at Cloudflare Email Routing, which is a common way to run a catch-all inbox. Most likely that was the bot checking that my form takes any address without a CAPTCHA. It did, so my form went on its list.
The three defenses on the form
Here is what the form had in front of it on 19 November. A hidden honeypot field called website, which real visitors never see. The route had throttle:5,1, so five attempts per minute per IP. And Laravel's email validation rule on the address.
$ cat storage/logs/laravel-2026-11-1[7-9].log storage/logs/laravel-2026-11-20.log | grep -c "honeypot triggered"
0
$ grep -h "sent to ConvertKit" storage/logs/laravel-2026-11-19.log | grep -oE '"email":"[^"]*"|"state":"[^"]*"' | paste - - - | head -8
"email":"…@mj.jud3.dev" "state":"active" "state":"active"
"email":"…@bundestag.de" "state":"active" "state":"active"
"email":"…@bundestag.de" "state":"active" "state":"active"
"email":"…@bundestag.de" "state":"active" "state":"active"
"email":"…@bundestag.de" "state":"active" "state":"active"
"email":"…@ec.europa.eu" "state":"active" "state":"active"
"email":"…@bundestag.de" "state":"active" "state":"active"
"email":"…@bundestag.de" "state":"active" "state":"active"
None. (I've cut the local part of each address.) Every signup reached Kit, and Kit made every address an active subscriber, because my form was single opt-in. Nine got through in total, the eight above plus the test signup two days earlier. The last two above arrived while I was writing the fix. Each defense missed for a plain reason. The honeypot only catches bots that fill in every field they find, and this one sent the email and left website empty. The throttle counts requests per IP per minute, and the bot sent one request every 10 to 15 minutes. (Laravel has sharper tools for other limits, like Cache::funnel for concurrency, but a per-IP limit can't see a bot that's slow on purpose and keeps changing IPs.) And the addresses were valid, because they belong to real people. That's the whole point of the attack.
Cleaning up first
The first job was the newsletter list itself, before the next post's broadcast went out. The form already talked to Kit's v3 API, so the cleanup used the same credentials:
use Illuminate\Support\Facades\Http;
$response = Http::put(config('services.convertkit.base_url').'/unsubscribe', [
'api_secret' => config('services.convertkit.api_key'),
'email' => $email,
]);
$response->json('subscriber.state'); // "cancelled"
Every address came back cancelled, and I deleted the local rows only after that. Kit's v3 API reference marks v3 as deprecated in favour of v4, so a new integration should use v4.
My own code had made one more mess. When Kit accepted a signup, the controller set the local row's status to confirmed. So my admin panel listed an address at the European Commission as a confirmed subscriber. In my code, "confirmed" only ever meant "Kit didn't return an error".
Layer one: a block list that lies
The quickest fix was a block list in the controller. The form already had a list for one disposable-mail domain. I added the domains the bot was using, and made subdomains match, because the test address was on mj.jud3.dev, not jud3.dev:
private const BLOCKED_DOMAINS = [
'immenseignite.info',
'jud3.dev',
'bundestag.de',
'ec.europa.eu',
'europarl.europa.eu',
];
private function isBlockedDomain(string $domain): bool
{
foreach (self::BLOCKED_DOMAINS as $blocked) {
if ($domain === $blocked || str_ends_with($domain, '.'.$blocked)) {
return true;
}
}
return false;
}
A blocked request gets the same JSON success message as a real signup, but nothing is saved and nothing goes to Kit. A bot that sees an error changes its input. A bot that sees success moves on to the next victim and keeps sending me addresses I already block.
It worked. By the morning of 20 November the block list had quietly accepted and thrown away 80 attempts, almost all of them @bundestag.de.
I added the two client IPs as well, and they turned out to be the weakest part. Over the next day the bot used eight different IPs in three ranges. IP blocking against a VPN user is a guess about where they'll be tomorrow.
The domain list has the same problem in slower motion. It only knows the domains I've already seen. So the next morning, when the bot moved on to party and parliamentary-group domains that weren't on the list, it needed something that doesn't depend on knowing the attacker in advance.
Layer two: Cloudflare Turnstile, checked on the server
Turnstile is Cloudflare's CAPTCHA replacement. It runs checks in the visitor's browser and hands the page a token, and most real visitors never see anything. It's free, and the site doesn't have to be proxied through Cloudflare to use it. Mine is, as part of how I hardened this VPS, but that's not a requirement.
The browser part proves nothing on its own. This bot never ran my page's JavaScript. It posted straight to /newsletter/subscribe. Cloudflare's docs say it directly: "The client-side widget alone does not protect your forms." The lock is the server calling siteverify with the token and the secret key:
private function passesTurnstile(Request $request): bool
{
$secret = config('services.turnstile.secret_key');
// Off until both keys exist, so a half-configured deploy can't lock readers out.
if (blank($secret) || blank(config('services.turnstile.site_key'))) {
return true;
}
$token = (string) $request->input('cf-turnstile-response', '');
if ($token === '') {
return false;
}
try {
$response = Http::asForm()->timeout(10)->post('https://challenges.cloudflare.com/turnstile/v0/siteverify', [
'secret' => $secret,
'response' => $token,
'remoteip' => $request->ip(),
]);
} catch (\Throwable $e) {
return false; // fail closed if Cloudflare can't be reached
}
return $response->json('success') === true;
}
(The real method also logs each rejection. I've cut the logging here.)
Two decisions in there are worth defending. A failed Turnstile check returns a real 422 error, not the fake success the block list uses. A real reader can fail Turnstile (an expired token, a flaky connection), and they need to see an error and try again. Only bots fill the honeypot or use a blocked domain, so lying to them costs nothing. And when Cloudflare can't be reached, the signup is refused. A few lost signups during an outage cost me much less than a stream of bot signups.
On the page, the widget doesn't load until someone clicks into the form. Most readers never subscribe, so most page views never download Cloudflare's script. It renders with appearance: 'interaction-only', which keeps it invisible unless Cloudflare wants a click:
function startTurnstile() {
if (!siteKey || started) return;
started = true;
loadTurnstile().then(function () {
widgetId = turnstile.render('#newsletter-turnstile', {
sitekey: siteKey,
action: 'newsletter',
appearance: 'interaction-only',
// trimmed: the real callback also wakes a submit that is waiting for a token
callback: function (t) { token = t; },
'expired-callback': function () { token = null; },
});
});
}
form.addEventListener('focusin', startTurnstile);
Two details from the server-side validation docs shaped the rest. A token is valid for 300 seconds, and it's meant to be used once. So the submit handler waits for a token if the reader is faster than the check, and calls turnstile.reset() after every submit to get a fresh one.
For local testing, Cloudflare publishes dummy keys. With site key 1x00000000000000000000BB and secret 2x0000000000000000000000000000000AA the check always fails, so I could watch the whole rejection path in a real browser without touching production. With the 1x...AA secret it always passes.
Turnstile went live on the morning of 19 November. By the next morning it had rejected 13 attempts, every one of them without a token, because the bot never runs the page. Those 13 were all the bot's tries with domains the block list didn't know.
Where each attempt stopped
Put together, the form now has five checks in a row. Each one catches something the others miss, and the three that did nothing this time still earn their place against dumber bots.
The order matters for cost. The honeypot, validation and block list are free, so they run first. A request that a cheap check already rejects never costs a call to Cloudflare.
The layer I should have had from day one
All of this protects my form from bots. None of it stops a human who types someone else's address into it. Double opt-in does. With it on, Kit emails every new signup a confirmation link, and the address gets no broadcasts until someone clicks it. Someone whose address was submitted by a bot never clicks.
In Kit, it's in each form's settings, under the Confirmation Email tab. Leave "Auto-confirm new subscribers" unchecked and keep "Send confirmation email" on. Kit's help article recommends leaving auto-confirm off.
It isn't free either. Each victim still gets one email from me, the confirmation, which is exactly what a subscription bomber wants. That's why it comes after Turnstile, not instead of it. Turnstile stops the email from being sent. Double opt-in makes sure that if one does get through, it's the only one. And my confirmed status needs renaming, because "Kit accepted it" and "the person confirmed" stop being the same thing.
FAQ
Why would anyone use a small blog's newsletter form for this?
Because the attack needs breadth, not reach. Each form contributes one email per victim, and a small form with no CAPTCHA is easier to automate than a big one. The test signup on a catch-all domain two days earlier was the bot checking that my form qualified.
Is a honeypot enough to stop newsletter spam?
No, though it's still worth having. It stops bots that fill every field, which is a lot of them. It didn't catch a single one of these. spatie/laravel-honeypot adds a timing check on top, rejecting forms submitted faster than one second by default. That helps against fast bots, but this one was slow on purpose.
Does Turnstile require my site to be on Cloudflare?
No. Cloudflare's docs say Turnstile works on any site without sending traffic through Cloudflare, and the free plan covers it. You need a widget in the Cloudflare dashboard for your hostname, a site key in the page, and a secret key in the server's .env. If a team shares that file, encrypt it instead of pasting the key into Slack.
Should a blocked signup get an error or a fake success?
It depends on who can trigger it. Fake success suits checks that only a bot can fail, like a filled honeypot or a blocked domain, because it gives the bot nothing to adapt to. Anything a real person can fail, like an expired Turnstile token, needs a real error.
What I'd do on day one now
If I were building this form again, I'd start with Turnstile verified on the server and double opt-in in the email provider, and treat the honeypot and the throttle as extras. A block list is still handy, but as an emergency tool for the morning an attack starts, not as the plan. The bot is still trying as I write this. It just doesn't get anywhere, and the only sign is a log line every quarter of an hour or so.
About Hafiz
Senior Full Stack Developer. I build production software with Laravel, Filament, Vue, and AI integrations, and write about the real decisions behind shipping it.
Get in touch →Get web development tips via email
Join 50+ developers • No spam • Unsubscribe anytime
Related Articles
PHP 8.3.37 Fixed 5 Critical Bugs on 19 November. Which Ones Reach a Laravel App?
Five critical PHP fixes landed on 19 November. I checked each against a Laravel...
Composer 2.11's Cooldown in a Laravel App: Safer Updates, Except When the Update Is the Security Fix
I turned on the new Composer cooldown in a Laravel 13 project. The first full up...
Stop Sharing .env Files in Slack: Laravel's Built-In env:encrypt Workflow
Laravel can encrypt .env files so they live in git, readable only with the key....