Prev: FAQ 6.12 Can I use Perl regular expressions to match balanced text?
Next: FAQ 7.23 How do I create a switch or case statement?
From: J�rgen Exner on 13 Jun 2010 06:44 Geoff <geoff(a)invalid.invalid> wrote: >On Fri, 11 Jun 2010 19:04:33 -0700, J�rgen Exner ><jurgenex(a)hotmail.com> wrote: > >>Geoff <geoff(a)invalid.invalid> wrote: >>>On Fri, 11 Jun 2010 04:34:53 -0700, J�rgen Exner >>>>Do you have a question that is related to Perl, too? >>> >>>yes, in the sense that I am looking for an alternative to the use of >>>.htaccess, and this could be Perl. PHP or Javascript. >> >>...or C or Lisp or Fortran or Haskell or any other of hundreds of >>programming languages..... >>That doesn't make your question a C or Lisp or Fortran question. > >OK - so which group should I have asked the question?! Your question appears to be related to authoring for the WWW. So somewhere in the infosystems.WWW hierachie seems to be reasonable. jue
From: Martijn Lievaart on 29 Jun 2010 05:19 On Fri, 11 Jun 2010 07:18:47 +0100, Geoff wrote: > On Fri, 11 Jun 2010 07:53:28 +0200, Martijn Lievaart > <m(a)rtij.nl.invlalid> wrote: > >>On Thu, 10 Jun 2010 23:54:58 +0100, Geoff wrote: >> >> >>> Now I know I can have a .htaccess file in each folder but that would >>> mean giving user A three different user name and password >>> combinations, user B four different combinations. >>> >>> >>No, it doesn't. Use one htpasswd file and use the .htaccess per >>directory to control who has access to that directory. It's really >>simple, no perl or php needed. And access control using javascript is >>always a BAAAD idea, it is always easily circumvented. > > Thanks Martijn, > > Do you mean using require user A for example in following .htaccess? > > AuthUserFile /usr/local/you/safedir/.htpasswd AuthGroupFile /dev/null > AuthName EnterPassword > AuthType Basic > > require user A > > > For both A and B is the line > > require user A, B > > or something different? That is the basic idea yes. The Apache docs can be a bit confusing and daunting, but it is all in there. M4
From: Geoff on 10 Jul 2010 15:01
On Tue, 29 Jun 2010 11:19:23 +0200, Martijn Lievaart <m(a)rtij.nl.invlalid> wrote: >On Fri, 11 Jun 2010 07:18:47 +0100, Geoff wrote: > >> On Fri, 11 Jun 2010 07:53:28 +0200, Martijn Lievaart >> <m(a)rtij.nl.invlalid> wrote: >> >>>On Thu, 10 Jun 2010 23:54:58 +0100, Geoff wrote: >>> >>> >>>> Now I know I can have a .htaccess file in each folder but that would >>>> mean giving user A three different user name and password >>>> combinations, user B four different combinations. >>>> >>>> >>>No, it doesn't. Use one htpasswd file and use the .htaccess per >>>directory to control who has access to that directory. It's really >>>simple, no perl or php needed. And access control using javascript is >>>always a BAAAD idea, it is always easily circumvented. >> >> Thanks Martijn, >> >> Do you mean using require user A for example in following .htaccess? >> >> AuthUserFile /usr/local/you/safedir/.htpasswd AuthGroupFile /dev/null >> AuthName EnterPassword >> AuthType Basic >> >> require user A >> >> >> For both A and B is the line >> >> require user A, B >> >> or something different? > >That is the basic idea yes. The Apache docs can be a bit confusing and >daunting, but it is all in there. Martijn, Apologies for the late reply - but thanks! Cheers Geoff > >M4 |