You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Joshua Slive <jo...@slive.ca> on 2002/02/17 16:35:23 UTC

RE: protecting a CDROM drive


On Sun, 17 Feb 2002, Admin wrote:

> I would try...creating a directory, with a page inside ...that has a
> link to the
> cd rom drive...then just use htaccess within that directory...so  the
> public
> must first be able to access that directory...before accessing the link
> to
> the cdrom...simple huh?
>
> From: Andrew Edmundson [mailto:andrew@edmundson.com]
>
> hi im using apache 2 on win32 and have created a alias for my CDROM
> drive that maps to its root, is there any way of password protecting
> this rather than using htaccess because this would mean me havin to burn
> the htaccess and passwd files to the cdrom too
>

Hmmm, bad idea IMHO.  Very easy to break through that.

There are two easy ways to provide proper protection.  Instead of placing
the auth directives in an .htaccess file, simply place them in the main
httpd.conf inside either a <Directory> section or a <Location> section.
Use <Directory> with the physical path, or <Location> with the web path.

Joshua.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: protecting a CDROM drive

Posted by Andrew Edmundson <an...@edmundson.com>.
nice one josh, just gave it a try works a treat :-)
cheers

andy

----- Original Message -----
From: "Joshua Slive" <jo...@slive.ca>
To: <us...@httpd.apache.org>
Sent: Sunday, February 17, 2002 3:35 PM
Subject: RE: protecting a CDROM drive


>
>
> On Sun, 17 Feb 2002, Admin wrote:
>
> > I would try...creating a directory, with a page inside ...that has a
> > link to the
> > cd rom drive...then just use htaccess within that directory...so  the
> > public
> > must first be able to access that directory...before accessing the link
> > to
> > the cdrom...simple huh?
> >
> > From: Andrew Edmundson [mailto:andrew@edmundson.com]
> >
> > hi im using apache 2 on win32 and have created a alias for my CDROM
> > drive that maps to its root, is there any way of password protecting
> > this rather than using htaccess because this would mean me havin to burn
> > the htaccess and passwd files to the cdrom too
> >
>
> Hmmm, bad idea IMHO.  Very easy to break through that.
>
> There are two easy ways to provide proper protection.  Instead of placing
> the auth directives in an .htaccess file, simply place them in the main
> httpd.conf inside either a <Directory> section or a <Location> section.
> Use <Directory> with the physical path, or <Location> with the web path.
>
> Joshua.
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: protecting a CDROM drive

Posted by Admin <ko...@naisp.net>.
yes...this is a much better idea...thanks JOSH

-----Original Message-----
From: Joshua Slive [mailto:joshua@slive.ca]
Sent: Sunday, February 17, 2002 10:35 AM
To: users@httpd.apache.org
Subject: RE: protecting a CDROM drive




On Sun, 17 Feb 2002, Admin wrote:

> I would try...creating a directory, with a page inside ...that has a
> link to the
> cd rom drive...then just use htaccess within that directory...so  the
> public
> must first be able to access that directory...before accessing the link
> to
> the cdrom...simple huh?
>
> From: Andrew Edmundson [mailto:andrew@edmundson.com]
>
> hi im using apache 2 on win32 and have created a alias for my CDROM
> drive that maps to its root, is there any way of password protecting
> this rather than using htaccess because this would mean me havin to burn
> the htaccess and passwd files to the cdrom too
>

Hmmm, bad idea IMHO.  Very easy to break through that.

There are two easy ways to provide proper protection.  Instead of placing
the auth directives in an .htaccess file, simply place them in the main
httpd.conf inside either a <Directory> section or a <Location> section.
Use <Directory> with the physical path, or <Location> with the web path.

Joshua.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org