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?
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?