Customer accounts with unlikely e-mail addresses appear in your Odoo, created from the website overnight. Or you simply want to know who is logged in, from where, and to end a session that looks suspicious. Odoo 19 and 20 do most of this without any module, but the settings are scattered and one of them opens up by itself when you install eCommerce. Here is where to click, in which order, and what the standard does not do.
1. Why these accounts appear
A plain Odoo website does not accept sign-ups: a website’s “Customer Account” setting
is “On invitation” by default. Everything changes when you install eCommerce
(the website_sale module). Its installation script switches every existing website
to “Free sign up”, and the checkout setting “Sign in/up at checkout”
starts on “Optional”.
The result: a shop installed without revisiting these two settings shows a “Sign up” link on the login
page and accepts any address. Bots that crawl the web looking for
/web/signup forms only have to fill it in. We checked this on a fresh Odoo 19 test database
on 24/11/2026: right after installing eCommerce, the website is on free sign-up.
💡 Key takeaway
It is not a security flaw. It is an eCommerce default, designed for a consumer shop. If your website is not one, this default does not suit you.
2. Closing free sign-up, in both places
Go to Website > Configuration > Settings.
- General block, “Customer Account” setting: choose “On invitation”.
- eCommerce block, “Sign in/up at checkout” setting: this is the trap. Changing it overwrites the first one. “Optional” or “Mandatory (no guest checkout)” put the website back on “Free sign up”; “Disabled (buy as guest)” switches it to “On invitation”.
On our test database, changing both settings in the same save does give “On invitation”. However, if someone later sets the checkout setting alone back to “Optional”, free sign-up returns without warning. So check the “Customer Account” setting after every change in the eCommerce block.
Without a website, the same “Customer Account” setting is in Settings > General Settings, Users block. With a website, the website’s setting is the one that counts.
The trade-off: with “On invitation”, your customers no longer create accounts themselves. They check out as guests, or you give them access: in Contacts, select the records then Action > Grant portal access. For a consumer shop this is a real hurdle; for a B2B portal it is the right setting.
💡 Key takeaway
Two settings for one effect, and the checkout one can undo the other. Choose according to your customers, not out of habit.
3. Keeping sign-up open, but behind a captcha
If your shop needs free sign-up, protect the form. In Settings > General Settings, Integrations block, tick reCAPTCHA (“Protect your forms from spam and abuse.”) or Cloudflare Turnstile, which requires the Website app. Save, then come back to the page: Odoo then asks for the two keys, which you create free of charge with Google or Cloudflare.
No development is needed: in the Odoo 19 and 20 code, sign-up, password reset requests and password login already carry their captcha check. It only kicks in once the keys are entered. As long as they are missing, nothing is checked, even with the box ticked.
The limit: a captcha stops bots, not a human creating accounts by hand. Nor is there any standard blacklist of e-mail domains.
💡 Key takeaway
Box ticked + keys entered = protected forms. Box ticked without keys = no protection.
4. Slowing down password guessers
Odoo has a built-in protection: after 5 failed logins from the same IP address, it ignores
further attempts for 60 seconds and shows “Too many login failures, please wait a bit before trying again.”
Both values can be set in developer mode, under Settings > Technical > Parameters > System Parameters:
base.login_cooldown_after (0 disables it) and base.login_cooldown_duration (in seconds).
Its limits are written in the code, so it is worth knowing them:
- the counter lives in memory, in each process: with several workers, each keeps its own, and a restart resets everything;
- it only covers login, not sign-up or password reset requests;
- behind a misconfigured proxy (Odoo without proxy mode), all requests seem to come from the same private address: five mistakes by a single user then lock out everyone. Odoo even says so in its logs.
For real IP blocking, shared between workers, we have published a free module for Odoo 18, 19 and 20: Anti-Bot Rate Limiter. It includes a “Login and password reset” rule that counts submissions to login, password reset and sign-up: 10 submissions in 5 minutes per IP address. It starts in Observe mode (it measures without blocking anything); in Block mode, an address that exceeds the limit is banned for 15 minutes. The story that led us to write it is told in our article on the bots that slow Odoo down.
💡 Key takeaway
The built-in pause is enough against a clumsy attempt. Against a persistent bot, or behind a proxy, you need a shared counter.
5. Seeing who is logged in, and ending a session
Odoo records every logged-in device: platform, browser, IP address, first and last activity, plus the country and city if the GeoIP geolocation database is installed on the server. To see everything, enable developer mode then open Settings > Technical > Security > User Devices. An employee only sees their own devices; an administrator sees them all.
- Odoo 19: each line of the list has a “Revoke” button, which closes the session remotely.
- Odoo 20 adds, in the same menu, a list of sessions (“User Sessions”; in a French interface the label was still untranslated on 24/11/2026). That is where the “Revoke” button is.
The “Log out from all devices” button also exists, but it only applies to your account: it appears in your preferences and on your own user form, Security tab, and closes all your sessions except the current one. On another user’s form it is hidden: to end their sessions, use the list above.
💡 Key takeaway
The session dashboard already exists, it is simply hidden in the Technical menu.
6. Getting alerted to a login from a new device
Odoo sends a “New Connection to your Account” e-mail when an account logs in from a device that is not marked as trusted. Condition: two-factor authentication must be active for that account. Without it, no alert.
You can enforce it without asking everyone to switch it on: Settings > General Settings, Permissions block, “Enforce two-factor authentication” box, then “Employees only” or “All users” (portal included). Users who have no authenticator app then receive a code by e-mail when they log in.
What the standard does not do: the alert goes to the user, not to the administrator, and there is no rule such as “refuse a login from a new country”. We do not recommend developing one: an authentication rule that gets it wrong locks out your own teams, often at the worst moment.
💡 Key takeaway
Enforced two-factor authentication = a code on every new device + an alert to the user. It is the most protection you get for one click.
7. Cleaning up accounts already created
In Settings > Users & Companies > Users, apply the “Portal Users” filter, spot the suspicious sign-ups, select them then Action > Archive. An archived account can no longer log in, and its history remains.
Avoid deleting an account linked to an order or an invoice: archiving is enough and breaks nothing.
💡 Key takeaway
Close the door first (sections 2 and 3), clean up afterwards. The other way round, you clean up twice.
⚔️ The Match: default Odoo vs hardened Odoo
| Point | After installing eCommerce | After the settings in this article |
|---|---|---|
| Sign-up on the website | Open, unchecked | On invitation, or open behind a captcha |
| Password guessing | 60 s pause after 5 failures, per worker | Per-IP ban shared between workers (free module) |
| Open sessions | Visible, but in developer mode | Monitored, revoked remotely when needed |
| New device alert | None without two-factor authentication | Two-factor authentication enforced, alert to the user |
Behaviour read in the Odoo 19 and 20 source code (Community and Enterprise); the eCommerce switch and the overwriting of the “Customer Account” setting checked on an Odoo 19 test database on 24/11/2026.
The Verdict: Odoo can defend itself, but you have to ask it to
Everything you need against fake accounts and suspicious logins is already in Odoo 19 and 20, with one exception:
shared IP blocking. The real risk is the default setting nobody reviewed after installing the shop.
No longer sure who configured what in your Odoo? An
audit of your installation
reviews these settings with you, and the
administrator training
teaches them to keep them under control.
Customer accounts with unlikely e-mail addresses appear in your Odoo, created from the website overnight. Or you simply want to know who is logged in, from where, and to end a session that looks suspicious. Odoo 19 and 20 do most of this without any module, but the settings are scattered and one of them opens up by itself when you install eCommerce. Here is where to click, in which order, and what the standard does not do.
1. Why these accounts appear
A plain Odoo website does not accept sign-ups: a website’s “Customer Account” setting
is “On invitation” by default. Everything changes when you install eCommerce
(the website_sale module). Its installation script switches every existing website
to “Free sign up”, and the checkout setting “Sign in/up at checkout”
starts on “Optional”.
The result: a shop installed without revisiting these two settings shows a “Sign up” link on the login
page and accepts any address. Bots that crawl the web looking for
/web/signup forms only have to fill it in. We checked this on a fresh Odoo 19 test database
on 24/11/2026: right after installing eCommerce, the website is on free sign-up.
💡 Key takeaway
It is not a security flaw. It is an eCommerce default, designed for a consumer shop. If your website is not one, this default does not suit you.
2. Closing free sign-up, in both places
Go to Website > Configuration > Settings.
- General block, “Customer Account” setting: choose “On invitation”.
- eCommerce block, “Sign in/up at checkout” setting: this is the trap. Changing it overwrites the first one. “Optional” or “Mandatory (no guest checkout)” put the website back on “Free sign up”; “Disabled (buy as guest)” switches it to “On invitation”.
On our test database, changing both settings in the same save does give “On invitation”. However, if someone later sets the checkout setting alone back to “Optional”, free sign-up returns without warning. So check the “Customer Account” setting after every change in the eCommerce block.
Without a website, the same “Customer Account” setting is in Settings > General Settings, Users block. With a website, the website’s setting is the one that counts.
The trade-off: with “On invitation”, your customers no longer create accounts themselves. They check out as guests, or you give them access: in Contacts, select the records then Action > Grant portal access. For a consumer shop this is a real hurdle; for a B2B portal it is the right setting.
💡 Key takeaway
Two settings for one effect, and the checkout one can undo the other. Choose according to your customers, not out of habit.
3. Keeping sign-up open, but behind a captcha
If your shop needs free sign-up, protect the form. In Settings > General Settings, Integrations block, tick reCAPTCHA (“Protect your forms from spam and abuse.”) or Cloudflare Turnstile, which requires the Website app. Save, then come back to the page: Odoo then asks for the two keys, which you create free of charge with Google or Cloudflare.
No development is needed: in the Odoo 19 and 20 code, sign-up, password reset requests and password login already carry their captcha check. It only kicks in once the keys are entered. As long as they are missing, nothing is checked, even with the box ticked.
The limit: a captcha stops bots, not a human creating accounts by hand. Nor is there any standard blacklist of e-mail domains.
💡 Key takeaway
Box ticked + keys entered = protected forms. Box ticked without keys = no protection.
4. Slowing down password guessers
Odoo has a built-in protection: after 5 failed logins from the same IP address, it ignores
further attempts for 60 seconds and shows “Too many login failures, please wait a bit before trying again.”
Both values can be set in developer mode, under Settings > Technical > Parameters > System Parameters:
base.login_cooldown_after (0 disables it) and base.login_cooldown_duration (in seconds).
Its limits are written in the code, so it is worth knowing them:
- the counter lives in memory, in each process: with several workers, each keeps its own, and a restart resets everything;
- it only covers login, not sign-up or password reset requests;
- behind a misconfigured proxy (Odoo without proxy mode), all requests seem to come from the same private address: five mistakes by a single user then lock out everyone. Odoo even says so in its logs.
For real IP blocking, shared between workers, we have published a free module for Odoo 18, 19 and 20: Anti-Bot Rate Limiter. It includes a “Login and password reset” rule that counts submissions to login, password reset and sign-up: 10 submissions in 5 minutes per IP address. It starts in Observe mode (it measures without blocking anything); in Block mode, an address that exceeds the limit is banned for 15 minutes. The story that led us to write it is told in our article on the bots that slow Odoo down.
💡 Key takeaway
The built-in pause is enough against a clumsy attempt. Against a persistent bot, or behind a proxy, you need a shared counter.
5. Seeing who is logged in, and ending a session
Odoo records every logged-in device: platform, browser, IP address, first and last activity, plus the country and city if the GeoIP geolocation database is installed on the server. To see everything, enable developer mode then open Settings > Technical > Security > User Devices. An employee only sees their own devices; an administrator sees them all.
- Odoo 19: each line of the list has a “Revoke” button, which closes the session remotely.
- Odoo 20 adds, in the same menu, a list of sessions (“User Sessions”; in a French interface the label was still untranslated on 24/11/2026). That is where the “Revoke” button is.
The “Log out from all devices” button also exists, but it only applies to your account: it appears in your preferences and on your own user form, Security tab, and closes all your sessions except the current one. On another user’s form it is hidden: to end their sessions, use the list above.
💡 Key takeaway
The session dashboard already exists, it is simply hidden in the Technical menu.
6. Getting alerted to a login from a new device
Odoo sends a “New Connection to your Account” e-mail when an account logs in from a device that is not marked as trusted. Condition: two-factor authentication must be active for that account. Without it, no alert.
You can enforce it without asking everyone to switch it on: Settings > General Settings, Permissions block, “Enforce two-factor authentication” box, then “Employees only” or “All users” (portal included). Users who have no authenticator app then receive a code by e-mail when they log in.
What the standard does not do: the alert goes to the user, not to the administrator, and there is no rule such as “refuse a login from a new country”. We do not recommend developing one: an authentication rule that gets it wrong locks out your own teams, often at the worst moment.
💡 Key takeaway
Enforced two-factor authentication = a code on every new device + an alert to the user. It is the most protection you get for one click.
7. Cleaning up accounts already created
In Settings > Users & Companies > Users, apply the “Portal Users” filter, spot the suspicious sign-ups, select them then Action > Archive. An archived account can no longer log in, and its history remains.
Avoid deleting an account linked to an order or an invoice: archiving is enough and breaks nothing.
💡 Key takeaway
Close the door first (sections 2 and 3), clean up afterwards. The other way round, you clean up twice.
⚔️ The Match: default Odoo vs hardened Odoo
| Point | After installing eCommerce | After the settings in this article |
|---|---|---|
| Sign-up on the website | Open, unchecked | On invitation, or open behind a captcha |
| Password guessing | 60 s pause after 5 failures, per worker | Per-IP ban shared between workers (free module) |
| Open sessions | Visible, but in developer mode | Monitored, revoked remotely when needed |
| New device alert | None without two-factor authentication | Two-factor authentication enforced, alert to the user |
Behaviour read in the Odoo 19 and 20 source code (Community and Enterprise); the eCommerce switch and the overwriting of the “Customer Account” setting checked on an Odoo 19 test database on 24/11/2026.
The Verdict: Odoo can defend itself, but you have to ask it to
Everything you need against fake accounts and suspicious logins is already in Odoo 19 and 20, with one exception:
shared IP blocking. The real risk is the default setting nobody reviewed after installing the shop.
No longer sure who configured what in your Odoo? An
audit of your installation
reviews these settings with you, and the
administrator training
teaches them to keep them under control.