Registration Limit from IP Address
I get a lot of registration on my forum, how to remove this option?
Eduardo_Braga is experiencing issues with registration limits on his Discourse forum, particularly due to Cloudflare masking real IP addresses, which triggers the max_new_accounts_per_registration_ip safeguard. He seeks to remove or disable this limit, ideally setting it to 0, to accommodate his large community migrating from a social network. itsbhanusharma advises checking for legitimate accounts sharing IPs and warns against disabling safeguards without understanding the risks. Wolftallemo suggests adding templates/cloudflare.template.yml to app.yml and rebuilding to fix IP detection — but notes this requires technical familiarity. codinghorror and pfaffman strongly recommend disabling Cloudflare (turning off the orange cloud) to avoid complications, and explain that SSL can still be enabled via Let’s Encrypt by re-running ./discourse-setup — which will not delete data, though it causes brief downtime. Eduardo remains confused, asking whether SSL can coexist with Cloudflare and whether rebuilding is truly necessary. pfaffman clarifies that if he’s unsure, he should seek help from someone technically proficient — otherwise, disabling Cloudflare is the simplest fix. Wolftallemo reassures him that rebuilding is safe and data-preserving, but reiterates that Cloudflare is best avoided unless he’s prepared for its complexities.
You’ll have to play with the setting max_new_accounts_per_registration_ip
But honestly, why are your registrations coming from the same IP? That seems like a bad configuration.
I don’t know, but it was my friend who had this error
to remove do i need to put 0?
I have a community on the social network with +100,000 members, we are switching to the forum, so no registration limit will be great ![]()
This is a failsafe to prevent spammers from registering multiple accounts … If your friend received it, as an admin, go to the /admin/users/ and on his account, check other accounts with the same ip … If those belong to him, ask him to not register multiple accounts .. if the IP address is something awkward (e.g. a private range) then there is a configuration issue with your installation that needs to be addressed first.
the forum registration is working only through google
He was unable to register, how am I going to check the same IP?
Really the best solution would be to add the cloudflare template in your app.yml
This should be at the top area of app.yml and probably looks similar,
templates:
- "templates/postgres.template.yml"
- "templates/redis.template.yml"
- "templates/web.template.yml"
- "templates/web.ratelimited.template.yml"
- "templates/web.ssl.template.yml"
- "templates/cloudflare.template.yml"
Notice at the bottom where templates/cloudflare.template.yml was added.
After adding it you’ll need to rebuild.
I don’t know much about the forum, how do I open this file to change? And after that how to rebuild?
Disable cloud flare. You will only cause yourself pain and suffering.
What does it do?
If I disable, won’t SSL work?
can you tell me how to remove this IP address limit?
The cloudflare template fixes the ip registration issue, yes it is an issue if something goes wrong. And SSL will work but you’ll have to launch setup again and input an email for Let’s Encrypt.
If you still want to use cloudflare I can help with that when I get home later.
If you run ./discourse-setup again and provide an email address for “let’s encrypt” you’ll get a free https certificate. Unless you have reason to expect denial of service attacks on your community and have some serious technical chops and time to read a bunch about the problems that CloudFlare can cause, that’s the best solution to your problem.
I’m confused by your answer, I don’t know how to add this file, why do I need to install it again?
ok, if i enable SSL, can i keep cloudflare active?
I’m confused by the answers
It’s best to disable cloudflare (turn off the orange cloud).
If you expect your community to be attacked for some reason and you are confused by the answers here then you need to hire or otherwise find someone who is not confused by these answers to help. But if you turn off the orange cloud, your problems will go away.
ok, there is no solution, how do I activate SSL?
what is this file for? Doesn’t it solve the problem?
If you followed the recommended installation instructions, you run ./discourse-setup again and provide an email address when it asks about “let’s encrypt”. If you installed some other way, then you’re on your own.
Won’t that do the installation again?
there is no way I can just enable SSL without having to install?
It sort of will in a sense, but no data is deleted. However there will be some downtime.
Overall I would not recommend using cloudflare unless you know what you’re doing and are willing to put up with it.
But anyways, it’s safe to rebuild and nothing will be lost.