Integration guide · SpamKill Secure Forms

Protect your MailerLite form from bots

In short: To stop spam on a MailerLite signup form, build the form once in the SpamKill Form Builder, connect MailerLite with an API token, and paste the SpamKill form on your page in place of MailerLite's embed. SpamKill checks every signup without a CAPTCHA, and real subscribers still land in your groups. It takes about 10 minutes.

Bots are signing up to your MailerLite list with fake addresses. Build your signup form once in SpamKill and connect MailerLite. Real subscribers keep landing in the groups you pick, and your double opt-in setting still applies. It takes about 10 minutes.

  • 7 steps
  • About 10 min
  • Copy and paste one snippet

Last verified on MailerLite (trial) with SpamKill Forms

What changes, and what doesn't

Stays the same
  • Subscribers still arrive in MailerLite, in the groups you pick
  • Your groups, automations and existing subscribers
  • Your double opt-in setting for API and integrations
What's added
  • A SpamKill form on your page, with the fields you choose
  • Every signup is checked before it reaches MailerLite
  • Undo it anytime by putting your MailerLite embed back

Before you start

Have these ready so nothing stops you halfway.

  • A SpamKill accountNo account yet? Start a free trial.
  • A MailerLite login that can create API tokensYou create a token once, under Integrations › API.
  • The group your subscribers should joinSpamKill lists your existing groups and never creates one. Create it first under Subscribers › Groups.
  • Access to the page your form goes onFor example your WordPress, Webflow or Squarespace editor, where MailerLite's embed code is pasted today.

Quick setup

For returning users. Each line links to its full step.

  1. In SpamKill, open Form Builder and click Create form. Step 1
  2. On the Build tab, add the same fields your MailerLite form has. Step 2
  3. In MailerLite, open Integrations › API, click Generate new token, and copy the token. Step 3
  4. On the Deliver tab, click Connect on MailerLite, paste the token and click Connect. Step 4
  5. Click Use this on MailerLite, then check each field is matched to a MailerLite field. Step 5
  6. Pick a group, click Save mapping, send a test lead, then click Publish form. Step 6
  7. Copy the code from the Embed tab and paste it where MailerLite's embed code was. Step 7
Step 1 of 7 · In SpamKill

Create your SpamKill form

Where: SpamKill ConsoleForm BuilderForms

In the SpamKill Console, click Form Builder in the sidebar, then Create form. Pick the starting point closest to your MailerLite form (1). Give the form a name and pick your website under Subscription. Click Create (2).

The Create a form dialog with Name, email & message selected and the form named Contact us
1Starting point2Create

You should see: Your new form open on the Build tab, marked Draft.

Finished step 1?
0 of 7 steps done
Next: Match your MailerLite fields ↓
Step 2 of 7 · In SpamKill

Match your MailerLite fields

Where: Form BuilderYour formBuild

Add each field your MailerLite form asks for from Common fields (1). Reorder or remove fields in your form (2). Every form keeps one required Email field.

The Build tab, with the Common fields list on the left and the form's Full name, Email, Message and Phone fields
1Common fields2Your form

You should see: The same fields as your MailerLite form. Changes save on their own.

Want it to look like your old form?

Use the Design tab to pick colours, font and label position. Style changes apply when you publish.

Finished step 2?
0 of 7 steps done
Next: Create a MailerLite API token ↓
Step 3 of 7 · In MailerLite

Create a MailerLite API token

Where: MailerLiteIntegrationsAPI

In MailerLite, open Integrations and go to API. Click Generate new token. Name the token, for example SpamKill (1). Leave All IPs allowed selected, tick the box to accept the API terms, and click Create token (2). Copy the token MailerLite shows you.

MailerLite's Create new API token dialog, with the token name box, All IPs allowed selected, the terms checkbox and Create token
1Token name2Create token

You should see: A new token on your clipboard, and it listed under API tokens.

Is the token tied to me?

Yes, to the MailerLite user who creates it. If that token is deleted later, SpamKill holds new leads and asks you to reconnect with a new one.

Finished step 3?
0 of 7 steps done
Next: Connect MailerLite ↓
Step 4 of 7 · In SpamKill

Connect MailerLite

Where: Form BuilderYour formDeliver

Open the Deliver tab. Under Add a CRM, click Connect on MailerLite (1). Paste your token into Your MailerLite API token (2), then click Connect (3).

The Deliver tab's Add a CRM list, with a Connect button on MailerLite and the other CRMs
1Connect
The Connect MailerLite page with the Your MailerLite API token box and the Connect button
2Paste your token3Connect

You should see: Back on the Deliver tab, a green Connected. message, and MailerLite under Your CRMs marked Already connected.

Finished step 4?
0 of 7 steps done
Next: Check the field mapping ↓
Step 5 of 7 · In SpamKill

Check the field mapping

Where: Form BuilderYour formDeliver

Click Use this on MailerLite (1). SpamKill matches most fields for you and splits Full name into first and last name (2). Look over anything under Needs a quick look (3) and pick the MailerLite field it belongs in. MailerLite has no field for a message, so Message stays Not sent unless you create one in MailerLite.

The Deliver tab after connecting: a Connected message and Your CRMs, with a Use this button on MailerLite
1Use this
The field mapping: Full name to First name with Split into First and Last, Email, Phone, Date to Custom Date, and Message set to Not sent
2Matched automatically3Needs a quick look

You should see: Delivering to MailerLite at the top, and every field matched or set to Not sent.

See fields like Total spent or Orders count?

Those are MailerLite's e-commerce fields. Leave them unmapped.

Finished step 5?
0 of 7 steps done
Next: Pick a group, test and publish ↓
Step 6 of 7 · In SpamKill and MailerLite

Pick a group, test and publish

Where: Form BuilderYour formDeliver

Under Groups, pick the group new subscribers should join (1). Click Save mapping. Click Send a test lead to this CRM (2) and check the subscriber in MailerLite. Then click Publish form.

The Groups picker with a group added, the Send a test lead to this CRM and Save mapping buttons, and Publish form
1Your group2Send a test lead
The test subscriber's details in MailerLite, with the group, name, last name, phone and custom date filled in
3Your group4Name
In SpamKill

Test contact delivered to your CRM. under the test button.

In MailerLite

A subscriber with your own email address under Subscribers, in your group.

You should see: The form's badge changes from Draft to Published.

Which email does the test subscriber use?

The one you sign in to SpamKill with. Delete the test subscriber in MailerLite when you're done.

Finished step 6?
0 of 7 steps done
Next: Swap the form on your page ↓
Step 7 of 7 · On your website

Swap the form on your page

Where: Form BuilderYour formEmbed

On the Embed tab, click Copy (1). Open the page with your MailerLite form in your website editor. Delete MailerLite's embed code and paste the SpamKill code in its place. Save and publish the page.

The Embed tab of a published form, showing the form code and a Copy button
1Copy

You should see: Your page shows the SpamKill form with your fields, in place of the MailerLite form. Sign up once with your own address to check it arrives in MailerLite.

Changed a field later?

Re-paste the code only when you add or remove a field. Other changes apply when you click Update & re-publish.

Finished step 7?
0 of 7 steps done

Your MailerLite form is protected

  • Bots are stopped before they reach MailerLite.
  • Real leads arrive exactly as before, with no extra steps for them.
  • Every block is logged in your SpamKill dashboard.
Open your dashboard

Something not working?

Find what you're seeing.

New subscribers are Unconfirmed, not Active

Your account asks new subscribers from integrations to confirm by email, and SpamKill follows that. To change it, in MailerLite open Account settings › Subscribe settings and turn off Double opt-in for API and integrations.

A lead shows as Failed because the person unsubscribed

MailerLite won't accept someone who unsubscribed, so SpamKill doesn't sign them up again. Their submission is still kept under the form's Leads tab.

I don't see a Reconnect button

A working connection has none. It appears when the connection needs it, for example after its token is deleted in MailerLite. Then reconnect with a new token from the same MailerLite account. Leads held in the meantime are sent once it's back.

My group isn't in the list

SpamKill only lists groups that already exist. Create it in MailerLite under Subscribers › Groups, then click Refresh fields on the form's Deliver tab.

A field is missing from the subscriber

Create it in MailerLite under Subscribers › Fields, then click Refresh fields on the form's Deliver tab and map it. Text, number and date fields can be mapped.

Changed your mind? Undo in under a minute

  1. Open the page in your website editor.
  2. Delete the SpamKill code and paste your MailerLite embed code back.
  3. Save and publish the page. Your MailerLite form is back to how it was.
  4. Optional: in MailerLite, delete the token you made for SpamKill under Integrations › API.
Did this guide work for you?

Stuck? We'll set it up with you.

Free setup help for every plan. Send us a message and we'll walk through your MailerLite form with you.

Get setup help