title: How to know which domain send request using JS to my C# action
body: <p>I need to know which domain send request to my C# action(MVC),
  I get the request and return JS code,</p>
  
  <p>For example:
  Someone put this code in is site(<a href="http://www.ClientExampleSite.com/" rel="nofollow">http://www.ClientExampleSite.com/</a>) :</p>
  
  <pre><code>&lt;script src="http://www.MyExampleSite.com/GetDomin /GetDomin" type="text/javascript"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>I need to return this code:</p>
  
  <pre><code>Var Domin = 'www.ClientExampleSite.com';
  </code></pre>
  
  <p>The problem is that UrlReferrer don't work in this situation.</p>
  
  <p>Thanks </p>
  
  <p><strong><em>edit:</em></strong>
  In the end what I want to do is to block requests from unknow domains.</p>