The web application I use (Zenphoto) stores images in /albums and subfolders. It's backend needs r/w-access to those folders and I need r/w-access to the folders via ftp, but the frontend never looks into /albums.
Now I want to keep visitors from directly accessing /albums and all subalbums
I did a lot of research and found that a .htaccess in /albums with deny from all
would accomplish that. However, I would prefer a redirection to my 404 page. What I made from a similar use case is I could do that in my root's htaccess. I added
RewriteRule ^albums/.* /404 [R,NC]
Because the similar usecase was very different in terms of motivation, my questions are:
- Is it an appropriate solution?
- Does it really accomplish what I want or can it be circumvented?