Can't you just use an .htaccess file inside doc_root/scripts
to prevent all access over the web to .js
files over HTTP?
It won't stop minify, since that provides indirect access.
So in doc_root/scripts/.htaccess
, something along the lines of
<Files ~ ".js$">
order allow,deny
deny from all
</Files>
Note that the location of the .htaccess
file matters in this case.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…