Odoo Help


Any suggestions how to protect the website

Malte Helmhold
on 10/30/14, 5:59 AM 1,504 views

Hi guys,

our Website is still in development. We want to protect it and don't want to 

allow people to see it. What's the correct way to enable a passwort protaction

via .htaccess? how can I include this file? Do I have to write a module for

that? What's the content of the .htaccess. Or can someone provide a module

for maintanence mode? 

all the best for you guys,



Luke Branch

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


Luke Branch
On 11/1/14, 2:23 AM


I don't think there is a publicly available module for maintenance mode, although I do think it is a great idea.

I think you could consider setting up Nginx as a reverse proxy and then restrict access to your website to only fixed IP addresses.

Alternatively you can consider using a frontend proxy (such as nginx) and assigning your website to a domain name that is not yet pointed at your server. You could then edit your computer's local hosts file (on a mac it is in /private/etc/hosts, on win 7 it's in C:\Windows\System32\drivers\etc\hosts). For this method you would just need to add your server's main IP address (eg. 123.456.1.2) and the domain you've setup in your /etc/nginx/sites-available/default (or ../sites-available/yourdomainhere.com) on it's own line at the end of your hosts file, for example:

123.456.1.2 yourdomainhere.com www.yourdomainhere.com

this would allow you to develop the website away from public view, while still allowing you to view it as if the domain was actually pointed over to your server.

You can some (very basic) information on setting up Nginx as a reverse proxy for Odoo 8.0 here, although please note that this setup is in no way a production-ready setup:




Ben Bernard

--Ben Bernard--

| 4 3 6
Jakarta, Indonesia
--Ben Bernard--
Ben Bernard
On 10/31/14, 1:22 AM

Is setup basic authentication [1] satisfy your requirement?


[1] https://httpd.apache.org/docs/2.2/mod/mod_auth_basic.html



Stephen Mack

--Stephen Mack--

| 8 8 9
Santiago, Chile
--Stephen Mack--

Some people call me a karma whore, I only ask for 10 points if you like my answer and 15 if I happen to get it correct.

Stephen Mack
On 10/30/14, 8:11 AM

No but you could change the port that odoo responds on so that it is more difficult to find it or use a reverse proxy server to direct traffic away from it.  Just a few suggestions.

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: 10/30/14, 5:59 AM
Seen: 1504 times
Last updated: 3/16/15, 8:10 AM