Before this question I asked about disabling file and folder listing and I found an answer that this can be done with a file called .htaccess. For disabling folder listing I write Options -Indexes in the .htaccess file and place it in the parent folder, on the other hand for disabling display of files content in the browser I write Deny from all.
The above part functions good, but when a putted the .htaccess file for disabling display of files content in the css or js folder, it disables display of files and also blocks the functionality of them (.css and .js).
Is there an answer that disables the display of files in the browser but allows the functionality of them?
Thank you