You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Brian McNally <bm...@u.washington.edu> on 2006/12/12 00:40:24 UTC

[users@httpd] Problems restricting access to a file

Hello,

I'm having some problems restricting access to a particular file  
using the following in my .htaccess file:

<Files the_file_name.zip>
         order deny,allow
         deny from all
         allow from my.domain.com
</Files>

If it helps, I'm using Apache 2.0.46, and the particular page is  
hosted as a virtual host.

When I use this in my .htaccess file the file will dissapear from  
index view for domains outside of my.domain.com (this is what I would  
expect, I guess) but the file is still accessible if I try and  
download it directly (NOT what I would expect).

I'm sure there's a reason for this, but I can't figure out why. I've  
looked at the other directives that apply to this file and I can't  
seem to find any kind of explanation.

--
Brian McNally



---------------------------------------------------------------------
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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Problems restricting access to a file

Posted by Brian McNally <bm...@u.washington.edu>.
Nevermind, this was a problem with my browser caching data.

--
Brian McNally


On Dec 11, 2006, at 3:40 PM, Brian McNally wrote:

> Hello,
>
> I'm having some problems restricting access to a particular file  
> using the following in my .htaccess file:
>
> <Files the_file_name.zip>
>         order deny,allow
>         deny from all
>         allow from my.domain.com
> </Files>
>
> If it helps, I'm using Apache 2.0.46, and the particular page is  
> hosted as a virtual host.
>
> When I use this in my .htaccess file the file will dissapear from  
> index view for domains outside of my.domain.com (this is what I  
> would expect, I guess) but the file is still accessible if I try  
> and download it directly (NOT what I would expect).
>
> I'm sure there's a reason for this, but I can't figure out why.  
> I've looked at the other directives that apply to this file and I  
> can't seem to find any kind of explanation.
>
> --
> Brian McNally
>
>
>
> ---------------------------------------------------------------------
> 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
>   "   from the digest: users-digest-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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org