title: How do I protect JavaScript files?
body: <p>I know it's impossible to hide source code but, for example, if I have to link a JavaScript file from my CDN to a web page and I don't want the people to know the location and/or content of this script, is this possible?</p>
  <p>For example, to link a script from a website, we use:</p>
  <pre><code>&lt;script type=&quot;text/javascript&quot; src=&quot;http://somedomain.example/scriptxyz.js&quot;&gt;
  &lt;/script&gt;
  </code></pre>
  <p>Now, is possible to hide from the user where the script comes from, or hide the script content and still use it on a web page?</p>
  <p>For example, by saving it in my private CDN that needs password to access files, would that work? If not, what would work to get what I want?</p>