RE: .htaccess problems

by "Brian A. Sayrs" <sayrs(at)southwindsolutions.com>

 Date:  Wed, 8 Mar 2000 07:19:41 -0800
 To:  "'Roger Stenning'" <roger(at)isgwds.enterprise-plc.com>,
"hwg-techniques(at)hwg.org" <hwg-techniques(at)hwg.org>
  todo: View Thread, Original
Another thing...a general warning has been issued by Apache that if =
you're just going to limit all actions, just eliminate all <limit> tags. =
 As it is, you are allowing the PUT transaction when you only list GET =
and POST.  I believe all you need is:

order deny,allow
allow from .ac.uk

Brian A. Sayrs
Owner, Southwind Solutions

-----Original Message-----
From:	Roger Stenning [SMTP:roger(at)isgwds.enterprise-plc.com]
Sent:	Tuesday, March 07, 2000 4:28 PM
To:	hwg-techniques(at)hwg.org
Subject:	Re: .htaccess problems

Jose -

> This is the first time I have actually attempted to use .htaccess and =
I
keep
> having a problem.

Tell me about it - I had similar problems, when I first played with it!

> The content of the .htaccess file is:
>
> <Limit GET POST>
>     order deny,allow
>     allow from .ac.uk
>     deny from ALL
> </Limit>
>
> This should allow all hosts from academic institutions in the
uk.....right?

In theory, yes, however:

> The problem is that as soon as I place the .htaccess file in ANY
directory, no
> files in that directory are accessible (I am in a .ac.uk host!)

The first caveat, ALLOW, is fine. The second undoes it, and bars every
attempt to access the site (including ac.uk).

I'd try losing the DENY elements, then trying to access it from a
non-university site, to see if it works, i.e., denies access to =
non-ac.uk
entities.

HTH!

Best regards,

Roger Stenning
Intelligent Web Design Services
    http://iws.n3.net/
Contact me for my PGP Public Key.

Webmaster for the Impossible Scenarios Group
    http://www.the-isg.co.uk/index.html

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.