Limite di registrazione dall'indirizzo IP

My users are getting the following when they try to signup:

“New registrations are not allowed from your IP address (maximum limit reached). Contact a staff member.”

I didn’t set a limit that I know of, so not sure why this is happening. We are all at the same three IP address because the forum is for a company intranet.

1 Mi Piace

Either relax the limit in site settings or make sure there is at least one staff member from each IP.

What is that setting called though? I can’t find it.

Go to Settings and search for ‘registration’ - have a look for “max new accounts per registration ip”

It’s in the ‘spam’ menu item in Admin > Settings.

3 Mi Piace

If I make it 0 will it be unlimited?

Not sure - make it six nines to be safe (don’t go too high or it might overflow)

We protect against overflows in settings because this has happened many times before.

2 Mi Piace

I changed the option to 100 and I still have the issue. Does it take some time to be taken into account?

Ok sorry my IP was blocked. I authorized it and it’s now working.

2 Mi Piace

thankq this replay is good for me :grinning:

Ciao Jeff,

Ho allentato le impostazioni e ho anche riavviato l’istanza, ma continuo a riscontrare questo errore:

“errors”:{“ip_address”:[“Le nuove registrazioni non sono consentite dal tuo indirizzo IP.”]}

C’è qualcos’altro che posso provare? O qualcosa per fare un debug migliore?

Grazie,
Evan

1 Mi Piace

Stai usando un reverse proxy sul tuo server o Cloudflare?

2 Mi Piace

Utilizzo Cloudflare e riscontro questo problema.

Aggiungi il modello Cloudflare al tuo app.yml e ricompila.

Scusa, cos’è il modello Cloudflare?

Accedi al tuo server tramite SSH e modifica il file app.yml per aggiungere questo blocco al blocco templates:

- "templates/cloudflare.template.yml"

Assicurati che sia allineato con gli altri template in quel blocco. Il file YML è molto sensibile a qualsiasi errore di indentazione. Devono esserci due spazi prima del -.

Quindi salva e ricompila.

2 Mi Piace

Grazie per questo! Il nostro sito è dietro Cloudflare: ho provato ad aggiungere templates/cloudflare.template.yml al nostro app.yml ma continuo a riscontrare lo stesso messaggio di errore. Il template cloudflare è mutualmente esclusivo con il template web.ratelimited?

1 Mi Piace

Sta ancora succedendo. Sto usando le API di discourse.

È stato risolto ora?

non con me