How to protect JavaScript code, make it only accessible for certain domain
<p>I have JavaScript I want to limit it to run in certain domain. For example I have</p>

<pre><code>javascript:(a=(b=document).createElement('script')).src='https://hello.com/js.php',b.body.appendChild(a);void(0)
</code></pre>

<p>I have the above code that should work only on <a href="http://helloworld.com" rel="nofollow">http://helloworld.com</a>. If some one else tries to access my JS files via <a href="https://hello.com/js.php" rel="nofollow">https://hello.com/js.php</a> they should not see my JavaScript inside it.</p>

<p>Or can you recommend me any obfuscator that cannot be deobfuscated?</p>
