Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Re: .htaccess and $ENV{

by echo (Pilgrim)
on Aug 09, 2001 at 18:52 UTC ( [id://103425]=note: print w/replies, xml ) Need Help??


in reply to Re: .htaccess and $ENV{
in thread .htaccess and $ENV{

don't use <Limit GET POST>!! It's a leftover from NCSA days. It will actually limit authentication to only those methods, GET and POST. A malicious user can craft a request using another method, e.g. PUT, and that request will bypass your authentication. Folks, don't use LIMIT containers unless you know what you're doing.

Replies are listed 'Best First'.
Re: Re: Re: .htaccess and $ENV{
by mischief (Hermit) on Aug 09, 2001 at 22:16 UTC

    As echo says, you shouldn't use the Limit directives in this case - it really means "only limit the http request methods...".

    Just to clarify, all you have to do is turn this:

    <Limit GET POST> require group Xdwp </LIMIT>

    into this:

    require valid-user

    The first example means that to log in successfully, the username submitted has to match the password of that user (obviously), and also be in the group "Xdwp". In the second example, all that has to happen is that the username has to be in the password file.

    This has absolutely nothing to do with perl though, so I'd suggest having a look at <a href=http://httpd.apache.org/docs/mod/core.html#requirethe docs on httpd.apache.org.

      Thank you echo and mischief for pointing out that I ought not to be using Limit directives. I will fix my .htaccess file.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://103425]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-04-20 00:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found