Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


How to limit login attempts ?

Yug Faa
on 4/22/14, 8:24 AM 2,365 views

Hi everybody,

If a user fails to login with three attempt, I want that the administrator will notified and the account blocked one day or the administrator unblock it.

Can I find a module ?

Thank you

On 7/9/15, 8:47 AM

Hi Yug Faa,

as far as I know there is no addon available for odoo to limit the login attempts. I would recommend to protect your odoo as soon as it is available over the internet with fail2ban. This is very easy and I wrote a short explanation (unfortunately on german) on the following page:


It is very easy to protect odoo with fail2ban.

1) find the log file that logs the login attempts. I use nginx and I told nginx to write everything to a log file: access_log /var/log/nginx/odoo-access.log;

2) create a filter

3) activate the filter

4) if you have a static ip: use the possibility to "ignoreIP" your own ip.

5) restart fail2ban

If you have any questions. Please let me know.


Hi Christoph Any idea about how to create the Fail2ban filter?

F. Marquez
on 11/6/15, 5:16 AM

Luke Branch

--Luke Branch--
| 6 7 8
Mui Wo, Lantau, Hong Kong
--Luke Branch--


Luke Branch
On 4/23/14, 4:37 AM

I am looking for this as well. Preferably something that can communicate with one or all of the following programs in Ubuntu 12.04 - 14.04:

iptables fail2ban bfd (brute force detection)

With the new v8 with a web facing frontend this will be very important. If it is able to communicate with the above program(s) as well it will allow for setting up rules to completely block the IP from all services (SSH, HTTP, etc.) if necessary.

We can developp a module because we can catch the IP and other data, for me I search if someone has already integrate this feature. a module can do this.

Yug Faa
on 4/23/14, 7:07 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

4 follower(s)


Asked: 4/22/14, 8:24 AM
Seen: 2365 times
Last updated: 1/21/16, 9:55 AM