Forum Moderators: open

Message Too Old, No Replies

.htaccess?

how to restrict directory access

         

keyplyr

12:35 am on Nov 15, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Other than *password protected* which my virtual host does not currently support, how can I restrict users from viewing the contents of a scripts directory.

I have an index.html file in the directory, but users can still type in the full path to view the files. These files of course still need to be called by the pages.

msr986

2:28 am on Nov 15, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you are referring to JavaScript files, you cannot hide them from the user. If you restrict access to these files the browser will not be able to retrieve these files either!

keyplyr

9:59 am on Nov 15, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Thanks