title: Check Domain via Code C#
body: <p>I have two websites.I want to validate,if the person who is signing in the 2nd website is come from the my 1st site.For example</p>
  
  <pre><code>if (websiteAcess == www.test.com)
  {
  
  allow user;
  } 
  else{
  
  deny user;
  
  }
  </code></pre>
  
  <p>My question is how to get the value of websiteAcess?
  Please help me sort out this problem.
  Thanks in advance</p>