How do you disable access to a root directory on a web server?
March 2, 2009 12:14 PM
Subscribe
How do you disable access to a root directory on a web server?
We have individual files that we're happy to let people download, but we don't necessarily want them going to the root directory to download all the files.
e.g.
http://www.example.com/files/filenumber1.jpg (okay)
http://www.example.com/files/ (not okay)
Can anybody point me in the right direction so that a user who tries the second URL is denied access? Should we be looking in httaccess? cpanel? Somewhere else? I was surprised to not find an answer after Googling around.
posted by jrholt to computers & internet (5 comments total)
1 user marked this as a favorite
Options -Indexesposted by Jairus at 12:19 PM on March 2