Hi, I want to block browsing clients from viewing .js files, but then I can't include that .js in my html :
Code:
# secure directory by disabling script execution
AddHandler cgi-script .js
Options -ExecCGI

# OR

# prevent viewing of a specific file
<Files tooltip.js>
 order allow,deny
 deny from all
</Files>
How to solve this problem?