# Ghost sign up and spam?

**URL:** <https://forum.ghost.org/t/ghost-sign-up-and-spam/54583>\
**Category:** Using Ghost\
**Created:** [January 20, 2025, 9:31pm UTC](https://forum.ghost.org/t/ghost-sign-up-and-spam/54583 "2025-01-20T21:31:06Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [January 23, 2025, 5:59pm UTC](https://forum.ghost.org/t/ghost-sign-up-and-spam/54583/21 "2025-01-23T17:59:44Z")

</div>

Can you post your config file, minus any secrets?

Two thoughts:  
You’ve got to restart ghost for it to take effect.  
If you’re using Docker, you probably need to set environment variables instead.

---

<div class="post-metadata">

**Author:** ![daveswift](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/daveswift/32/34485_2.png) [@daveswift](https://forum.ghost.org/u/daveswift)\
**Post date:** [January 24, 2025, 1:24am UTC](https://forum.ghost.org/t/ghost-sign-up-and-spam/54583/22 "2025-01-24T01:24:28Z")

</div>

Thanks for the reply, Cathy. Upon testing, I think the block list is working. I am still receiving bounce notifications from submissions from 48 hours ago, so it confused me :)

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [January 24, 2025, 1:26am UTC](https://forum.ghost.org/t/ghost-sign-up-and-spam/54583/23 "2025-01-24T01:26:03Z")

</div>

Yeah, email is like that!

---

<div class="post-metadata">

**Author:** ![ajfriesen](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/ajfriesen/32/15768_2.png) [@ajfriesen](https://forum.ghost.org/u/ajfriesen)\
**Post date:** [January 24, 2025, 4:01pm UTC](https://forum.ghost.org/t/ghost-sign-up-and-spam/54583/24 "2025-01-24T16:01:41Z")

</div>

I am using Ghost with docker compose.

Is this the correct way to pass the spam options?

docker-compose.yaml

```yaml
database __connection__ host: db
spam__blocked_email_domains: "['tmomail.net', 'txt.bell.ca', 'txt.att.net']"

```

environment in the container:

```auto
database __connection__ host=db
spam__blocked_email_domains=['tmomail.net', 'txt.bell.ca', 'txt.att.net']

```

I am not 100% sure if this works 😅

---

<div class="post-metadata">

**Author:** ![neotint](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/neotint/32/32985_2.png) [@neotint](https://forum.ghost.org/u/neotint)\
**Post date:** [January 24, 2025, 4:04pm UTC](https://forum.ghost.org/t/ghost-sign-up-and-spam/54583/25 "2025-01-24T16:04:19Z")

</div>

Thank you! Been wondering how AI will affect spam like this in helping spammers exploit or be used to ruin other services.

---

<div class="post-metadata">

**Author:** ![jannis](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/jannis/32/39718_2.png) [@jannis](https://forum.ghost.org/u/jannis)\
**Post date:** [January 24, 2025, 4:31pm UTC](https://forum.ghost.org/t/ghost-sign-up-and-spam/54583/26 "2025-01-24T16:31:50Z")

</div>

Yes, that’s the environment variable I use on all sites. Working well there 🙂

---

<div class="post-metadata">

**Author:** ![ajfriesen](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/ajfriesen/32/15768_2.png) [@ajfriesen](https://forum.ghost.org/u/ajfriesen)\
**Post date:** [January 24, 2025, 6:03pm UTC](https://forum.ghost.org/t/ghost-sign-up-and-spam/54583/27 "2025-01-24T18:03:18Z")

</div>

I am not sure if this works.

I tried to sign up with one of the spammers emails and the logs say that they send the email with magic link.

I was under the impression, there would be a popup or some text saying, that the domain is not a valid one. At least I saw something like that in the code.

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [January 24, 2025, 6:08pm UTC](https://forum.ghost.org/t/ghost-sign-up-and-spam/54583/28 "2025-01-24T18:08:31Z")

</div>

Restart? Make sure you’re running latest Ghost?

---

<div class="post-metadata">

**Author:** ![jannis](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/jannis/32/39718_2.png) [@jannis](https://forum.ghost.org/u/jannis)\
**Post date:** [January 24, 2025, 6:20pm UTC](https://forum.ghost.org/t/ghost-sign-up-and-spam/54583/29 "2025-01-24T18:20:41Z")

</div>

Ahhh…I know what’s going on. I had the same issue at first. Just focussed on the left side of the variable you posted 🤦‍♂️

The only way the value was properly parsed for me was without spaces around the comma and double quotes:

```auto
["tmomail.net","txt.bell.ca","txt.att.net"]

```

rather than what feels more natural, coming from Javascript:

```auto
['tmomail.net', 'txt.bell.ca', 'txt.att.net']

```

---

<div class="post-metadata">

**Author:** ![Whiskey\_7\_Back\_Roads](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/whiskey_7_back_roads/32/34510_2.png) [@Whiskey\_7\_Back\_Roads](https://forum.ghost.org/u/Whiskey_7_Back_Roads)\
**Post date:** [January 24, 2025, 10:07pm UTC](https://forum.ghost.org/t/ghost-sign-up-and-spam/54583/30 "2025-01-24T22:07:21Z")

</div>

I am self hosted and have it like your first post and still getting thru with the [txt.att.net](http://txt.att.net)

---

<div class="post-metadata">

**Author:** ![ajfriesen](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/ajfriesen/32/15768_2.png) [@ajfriesen](https://forum.ghost.org/u/ajfriesen)\
**Post date:** [January 24, 2025, 11:18pm UTC](https://forum.ghost.org/t/ghost-sign-up-and-spam/54583/31 "2025-01-24T23:18:29Z")

</div>

Thank you!

With this config in my docker-compose.yaml it is now working:

```auto
spam__blocked_email_domains: '["tmomail.net","txt.bell.ca","txt.att.net","vtext.com"]'

```

Now I am able to see either a message in the browser console or a small popup? that tells me that the sign up failed.

---

<div class="post-metadata">

**Author:** ![mheland](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mheland/32/26236_2.png) [@mheland](https://forum.ghost.org/u/mheland)\
**Post date:** [January 25, 2025, 2:38pm UTC](https://forum.ghost.org/t/ghost-sign-up-and-spam/54583/32 "2025-01-25T14:38:01Z")

</div>

Thank you. Thank you. Thank you.  
Was getting nuked over here.

Also, what is going on here with how the spammers signing up.  
Here is from the Docker log…

```auto
[2025-01-25 17:22:26] INFO "GET /members/api/integrity-token/" 200 1ms
[2025-01-25 17:22:27] INFO "POST /members/api/send-magic-link/" 201 919ms
[2025-01-25 17:22:55] INFO "GET /members/api/integrity-token/" 200 1ms
[2025-01-25 17:22:56] INFO "POST /members/api/send-magic-link/" 201 1316ms

```

with my Make “eraser” spammers have a 2 seconds lifespan…

```auto
[2025-01-25 17:32:31] INFO "GET /?action=signup&success=true" 200 141ms
[2025-01-25 17:32:33] INFO "DELETE /ghost/api/v3/admin/members/6795202f1fbeaf00018e47c4?formats=html%2Cmobiledoc" 204 351ms

```

If you’re overwhelmed with spam signups I’d be happy to help you set this up.

---

<div class="post-metadata">

**Author:** ![TheChocolateLife](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/thechocolatelife/32/11129_2.png) [@TheChocolateLife](https://forum.ghost.org/u/TheChocolateLife)\
**Post date:** [January 25, 2025, 5:37pm UTC](https://forum.ghost.org/t/ghost-sign-up-and-spam/54583/33 "2025-01-25T17:37:02Z")

</div>

If I get my developer to implement this on my self-hosted site is there a way for me to update the domains in the block list in header code injection?

---

<div class="post-metadata">

**Author:** ![jannis](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/jannis/32/39718_2.png) [@jannis](https://forum.ghost.org/u/jannis)\
**Post date:** [January 25, 2025, 5:39pm UTC](https://forum.ghost.org/t/ghost-sign-up-and-spam/54583/34 "2025-01-25T17:39:46Z")

</div>

No, this is an option on the server. Only the configuration file or environment variables will have an impact on the list

---

<div class="post-metadata">

**Author:** ![daveswift](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/daveswift/32/34485_2.png) [@daveswift](https://forum.ghost.org/u/daveswift)\
**Post date:** [January 26, 2025, 1:24am UTC](https://forum.ghost.org/t/ghost-sign-up-and-spam/54583/35 "2025-01-26T01:24:03Z")

</div>

If it’s helpful to anyone, here is the complete list of domains the spammers have been using on my site.

You should be able to copy/paste this to your config.production.json and restart ghost.

```auto
"spam": {
    "blocked_email_domains": [
      "vtext.com",
      "txt.att.net",
      "tmomail.net",
      "mymetropcs.com",
      "msg.telus.com",
      "pcs.rogers.com",
      "fido.ca",
      "txt.freedommobile.ca",
      "mail.com"
    ]
  },

```

Test by signing up with one of the blocked addresses should result in an error popup and a message in your logs:

This email domain is not accepted, try again with a different email address

---

<div class="post-metadata">

**Author:** ![karim](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/karim/32/34526_2.png) [@karim](https://forum.ghost.org/u/karim)\
**Post date:** [January 26, 2025, 9:59am UTC](https://forum.ghost.org/t/ghost-sign-up-and-spam/54583/36 "2025-01-26T09:59:39Z")

</div>

Thanks everyone, this was helpful! Getting raided by a bunch of `txt.att.net` accounts on my end, which assume are some “AI agents/operators” scraping the web to add gated content to their datasets. 😬

At first, updating the config & restarting didn’t work. I had to first update ghost (`ghost update`). The relevant release this was activated on is `5.107.1`.

Strange this isn’t supported on mailgun side though.

---

<div class="post-metadata">

**Author:** ![ajfriesen](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/ajfriesen/32/15768_2.png) [@ajfriesen](https://forum.ghost.org/u/ajfriesen)\
**Post date:** [January 26, 2025, 10:16am UTC](https://forum.ghost.org/t/ghost-sign-up-and-spam/54583/37 "2025-01-26T10:16:40Z")

</div>

> [@karim](#):
>
> Strange this isn’t supported on mailgun side though.

That is because the sign up emails are not send my mailgun.  
Mailgun is only for the mass emailing, so the newsletter.

The signup mails are from your smtp server.

---

<div class="post-metadata">

**Author:** ![karim](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/karim/32/34526_2.png) [@karim](https://forum.ghost.org/u/karim)\
**Post date:** [January 26, 2025, 10:35am UTC](https://forum.ghost.org/t/ghost-sign-up-and-spam/54583/38 "2025-01-26T10:35:26Z")

</div>

> [@ajfriesen](#):
>
> That is because the sign up emails are not send my mailgun.  
> Mailgun is only for the mass emailing, so the newsletter.
> 
> The signup mails are from your smtp server.

I have Mailgun configured for everything.

---

<div class="post-metadata">

**Author:** ![Whiskey\_7\_Back\_Roads](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/whiskey_7_back_roads/32/34510_2.png) [@Whiskey\_7\_Back\_Roads](https://forum.ghost.org/u/Whiskey_7_Back_Roads)\
**Post date:** [January 26, 2025, 2:28pm UTC](https://forum.ghost.org/t/ghost-sign-up-and-spam/54583/39 "2025-01-26T14:28:01Z")

</div>

I have updated with the new spam block above, and updated ghost, stop, restarted and I can still sign up with [txt.att.net](http://txt.att.net). Not sure if I am doing something wrong or missing something?? Self hosted in cloud, Ghost doctor shows no problems or errors

---

<div class="post-metadata">

**Author:** ![jannis](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/jannis/32/39718_2.png) [@jannis](https://forum.ghost.org/u/jannis)\
**Post date:** [January 26, 2025, 2:56pm UTC](https://forum.ghost.org/t/ghost-sign-up-and-spam/54583/40 "2025-01-26T14:56:19Z")

</div>

Which version are you running? Can we see the relevant part of your configuration?

[Previous page](https://forum.ghost.org/t/ghost-sign-up-and-spam/54583.md?page=1)

[Next page](https://forum.ghost.org/t/ghost-sign-up-and-spam/54583.md?page=3)
