From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Barton Subject: Re: Make html password protected? Date: Wed, 10 Sep 2014 10:50:30 +0100 Message-ID: <54101EE6.10303@wilkesley.net> References: Reply-To: ian@manor-farm.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52977) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XReXx-0007GU-Ld for emacs-orgmode@gnu.org; Wed, 10 Sep 2014 05:50:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XReXq-0003tY-4B for emacs-orgmode@gnu.org; Wed, 10 Sep 2014 05:50:41 -0400 Received: from mail2.wilkesley.net ([109.74.196.44]:39989 helo=li40-130.members.linode.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XReXp-0003rD-TP for emacs-orgmode@gnu.org; Wed, 10 Sep 2014 05:50:34 -0400 Received: from scamper2.bantercat.co.uk (unknown [46.33.134.31]) (Authenticated sender: lists@wilkesley.net) by li40-130.members.linode.com (Postfix) with ESMTPSA id CCE7310E2B4 for ; Wed, 10 Sep 2014 09:50:30 +0000 (UTC) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On 08/09/14 11:22, Rainer M Krug wrote: > Hi > > I do not have much experience with html and websites (what an > understatement!) but I would like to publish / export a simple html page > password protected. Is ther an easy way to do it in word? > > The content is not highly confidential or sensitive, just some analysis > for a paper of which I would like to provide regular feedback to my > co-authors and which should not be to easily readable by others. > > Any suggestions? > It depends if you have access to your web server configuration. If you are able to modify it the simplest way is to create an .htacess file in the directory containing your file: AuthName "Journal" AuthType Digest file: AuthUserFile /etc/httpd/journal.passwd Require valid-user Order allow,deny Satisfy any You can create a password file with: htdigest -c /etc/httpd/journal.passwd "Journal" username To add more users omit the -c argument, which will create a new file. Make sure you use digest authentication not basic (ie don't use htpasswd). Basic authentication transmits user names and passwords in plain text. Ian.