title: Load javascript only for specific domain?
body: <p>I want the javascript loaded only on the domain that I specify, while if it is loaded by another domain, the page will be directed to the domain that I specify.</p>
  
  <p>for example, I have a page in domain <code>mydomain.com</code> with some javascript there, then someone copy that javascript from my page and load it in <code>hisdomain.com</code>. Because I have set the script to function only in the domain <code>mydomain.com</code>, so the script will not work in <code>hisdomain.com</code>. Besides, it would be better if <code>hisdomain.com</code> redirected to <code>mydomain.com</code>.</p>
  
  <p>I want to use this method to avoid theft and cloning scripts by people who are not responsible.</p>
  
  <p>Thank you!</p>