Block access to JavaScript file
snippet in htaccess

Block access to JavaScript file

user3190

RewriteEngine on
RewriteCond %{HTTP_REFERER} !http://your-domain\.com/.* [NC]
RewriteRule ^.*js$ - [F]