.htaccess deny from all does not work?

Posted by jeffery_the_wind on Server Fault See other posts from Server Fault or by jeffery_the_wind
Published on 2012-09-07T18:42:04Z Indexed on 2012/09/07 21:40 UTC
Read the original article Hit count: 255

Filed under:
|
|
|

I am running Apache 2.2.20 on a Ubuntu 11.04 web server. I have a Joomla site running on it, but I have also added some custom content. In the main web directly I have added a folder /images/sub_folder and in this sub_folder I have put a bunch of pictures. I do not want anyone to be able to simply access these pictures directly from the web, so I made a .htaccess file in that sub_folder and just put the following line in it:

deny from all

There doesn't seem to be any effect, I can still access the images directly from a web browser. I have restarted the Apache service. What am I doing wrong?

Thanks

Tim

© Server Fault or respective owner

Related posts about apache2

Related posts about ubuntu