CHMOD and Web Server Question
Is it possible to use CHMOD to protect a directory on a web server that doesn't have an index file, so that it causes a 403 error instead of displaying the default Apache directory listing? The catch is that I still want to be able to link to files contained within the directory from other pages. I don't have access to any of the Apache configuration files.
What do you mean you don't have access to any of the Apache configuration files? The file would be ".htaccess", in the folder itself, with just a couple lines of text. You can't upload files to your space, but you can run chmod? That would be pretty odd if true...
Brad Wilson (dotnetguy.techieswithcats.com)
Sorry Brad, a major misunderstanding on my part! So what do I need to put in .htaccess?
Not as fancy as modifying htaccess, but you can put this in an index.html file in the directory in question:
Chas - it works on all servers, but you have to pre-identify all your exposed folders.
Fog Creek Home