Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Ghost
  3. How to add this new anti bot sign-up configuration on Cloudron?

How to add this new anti bot sign-up configuration on Cloudron?

Scheduled Pinned Locked Moved Ghost
9 Posts 4 Posters 126 Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • jdaviescoatesJ Offline
      jdaviescoatesJ Offline
      jdaviescoates
      wrote on last edited by jdaviescoates
      #1

      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 env file via the File Manager, with and without export in front of it, but then the app wouldn't start

      e.g.

      /app/data/env: line 6: export: spam:': not a valid identifier`

      How do we add this config on Cloudron please? Thanks!

      I use Cloudron with Gandi & Hetzner

      1 Reply Last reply
      0
      • nebulonN Offline
        nebulonN Offline
        nebulon
        Staff
        wrote on last edited by
        #2

        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!

        bmannB 1 Reply Last reply
        1
        • nebulonN nebulon

          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!

          bmannB Offline
          bmannB Offline
          bmann
          wrote on last edited by
          #3

          @nebulon is that /app/data/config.production.json or somewhere else?

          1 Reply Last reply
          1
          • nebulonN Offline
            nebulonN Offline
            nebulon
            Staff
            wrote on last edited by
            #4

            Yes, that is the config file where the section should be added.

            1 Reply Last reply
            1
            • jdaviescoatesJ Offline
              jdaviescoatesJ Offline
              jdaviescoates
              wrote on last edited by jdaviescoates
              #5

              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.

              I use Cloudron with Gandi & Hetzner

              1 Reply Last reply
              1
              • bmannB Offline
                bmannB Offline
                bmann
                wrote on last edited by
                #6

                Thanks! yeah, that's JSON validation. Applied, appreciate the feedback.

                1 Reply Last reply
                2
                • bmannB Offline
                  bmannB Offline
                  bmann
                  wrote on last edited by
                  #7

                  Hmm. Found another domain email.uscc.net

                  1 Reply Last reply
                  2
                  • rosanoR Offline
                    rosanoR Offline
                    rosano
                    wrote on last edited by
                    #8

                    Ghost recently made a UI for this https://ghost.org/changelog/signup-spam-protection/

                    jdaviescoatesJ 1 Reply Last reply
                    2
                    • rosanoR rosano

                      Ghost recently made a UI for this https://ghost.org/changelog/signup-spam-protection/

                      jdaviescoatesJ Offline
                      jdaviescoatesJ Offline
                      jdaviescoates
                      wrote on last edited by
                      #9

                      @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!

                      I use Cloudron with Gandi & Hetzner

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Bookmarks
                        • Search