Odoo Help


Secure entire Odoo website

on 1/1/15, 8:17 AM 1,980 views

I'm working for a company that hosts Odoo 8 on a  Linux VPS server.The employees want to access Odoo from IP address

(ex. http://IP-addr:8069).But its not secure because if you type http://IP-addr:8069 it redirects to "/web/database/manager" from which anyone in the world can create or delete databases.

How can I a secure the entire Odoo website with login and password for the entire site and without redirecting to "/web/database/manager"?



| 8 8 8

My Odoo blog: http://www.odoo.yenthevg.com/

My Twitter: https://twitter.com/Yenthe666

On 1/2/15, 2:56 AM

Since nobody hasn't posted an answer on this yet I'll give you my thoughts / tips.

One way you could go is to simply remove the links in the pages (such as manage your databases) by modifying the xml file under the website module.
The only downside here is that if a user manually goes to /web/database/manager he will still be able to access this and has all the rights he wants. Provided that he knows the master password / finds a way to hack it, that is.

To ensure nobody can do this you could prevent this by adding an .htaccess file or write an access rule that prevents acces on this page from anywhere. You could then simply say that the page should only be showed (allowed) from within your server or from a given IP.
There is a module for this which you can find here: https://github.com/prakashsukraj/Odoo-DBRestrict

If you don't want to use a module you could use Nginx as a reverse proxy in front of Odoo and simply use Nginx rules to restrict access to those pages to certain fixed IP addresses.
There is a detailed question and example about this here: https://www.odoo.com/forum/help-1/question/how-to-show-the-manage-database-page-for-particular-user-like-administrator-in-openerp-v8-57036
I hope this helps you and answers all your questions.

Best of luck!




| 5 4 6
Zagreb | Karlovac, Croatia

there is only 10 kind of people the ones that understand binary ... and others

On 1/2/15, 2:52 AM

level 1.
> define default database in config file ( db_filter = your_db_name  )
> forbid showing other db's ( list_db = False )

level 2.
> consider instaling odoo/openerp server to work behind reverse proxy ( apache, nginx or simmilar ) 
>> preferably with https and some user certificates required to login  (redirect users without cert to some useless)

 consider hiring some security cunsultant to do the job :) because lvl1&2 is only entry level of securing the production server...

Hope it helps : ) 



About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 1/1/15, 8:17 AM
Seen: 1980 times
Last updated: 3/16/15, 8:10 AM