How to restrict/forbid access to specific file types such as .js .css inside a .htaccess file?
snippet in htaccess

How to restrict/forbid access to specific file types such as .js .css inside a .htaccess file?

user7265

<Files ~ "(.js|.css)">
Order allow,deny
Deny from all
</Files>