How to add this new anti bot sign-up configuration on Cloudron?
-
I'm getting loads of spam sign-ups to my Ghost sites, but according to this post:
Self-hosters can apply the same blocklist to their Ghost sites, by adding a list of blocked email domains to their config, under spam.blocked_email_domains. For example:
"spam": {
"blocked_email_domains": ["tmomail.net", "txt.bell.ca"]
}https://forum.ghost.org/t/an-uptick-of-bots-signing-up/54589/4
I tried add that to my
envfile via the File Manager, with and withoutexportin front of it, but then the app wouldn't starte.g.
/app/data/env: line 6: export:spam:': not a valid identifier`How do we add this config on Cloudron please? Thanks!
-
You have to set this in the .json config file of your Ghost instance. This is a toplevel property: https://github.com/TryGhost/Ghost/blob/main/ghost/core/core/shared/config/defaults.json#L64
Our blog also seems to be hit by those domains, I have also put them in the blocklist, so lets see.
After changing, make sure to restart the app!
-
You have to set this in the .json config file of your Ghost instance. This is a toplevel property: https://github.com/TryGhost/Ghost/blob/main/ghost/core/core/shared/config/defaults.json#L64
Our blog also seems to be hit by those domains, I have also put them in the blocklist, so lets see.
After changing, make sure to restart the app!
-
Just to add, this is how I've now got it seemingly working at the end of my
/app/data/config.production.json:}, "privacy": { "useUpdateCheck": false, "useGravatar": false, "useRpcPing": false, "useStructuredData": true }, "spam": { "blocked_email_domains": [ "tmomail.net", "txt.bell.ca" ] } }i.e. you can't just copy/ paste the code in, you also need to add that preceeding comma
,or it errors out. -
Ghost recently made a UI for this https://ghost.org/changelog/signup-spam-protection/
-
Ghost recently made a UI for this https://ghost.org/changelog/signup-spam-protection/
@rosano said in How to add this new anti bot sign-up configuration on Cloudron?:
Ghost recently made a UI for this https://ghost.org/changelog/signup-spam-protection/
Thanks for the headsup!
Odd that it isn't pre-poluated with the links I've already added using the previous config method!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login