Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Directory blocking ONLY for client.

Status
Not open for further replies.

Calgyria

Programmer
Oct 9, 2001
2
SE
Hello.
How do i block access to a directory and to its files, and still have access to it from the html files?

If i have a file, e.g. called berit.js
and it placed in dir: /style
if i type domain.com/style
or domain/style/berit.js
the dir should not be listing the files, and NOT let the user download the file berit.js.
BUT, html files also on the web server, are supposed to have rights to use the file berit.js in its code.
Do you understand my problem and have any ideas how to do it?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top