I have an /uploads directory I wish to block from direct access. Of course I would put it outside the web root, but I'm really looking at a quick .htaccess fix.
Is there a way I can 403 or 404 a directory?
|
feedback
|
This question came from our site for professional and enthusiast programmers.
|
This will cause a 403 Forbidden message to be sent by the server:
| |||
|
feedback
|
|
This seems to work. I put the following in /uploads/.htaccess
| |||
|
feedback
|