title: CF: How to get a caller IP or hostname?
body: <p>I have a CF application, let's call it aaa.com. It has a function: <code>aaa.com/file.cfm</code>. I need <code>file.cfm</code> to be called in an other application, let's call it <code>bbb.com</code>. </p>
  
  <p>Within <code>file.cfm</code> I would like to check, where the call is coming from. I tried to get the IP with </p>
  
  <pre><code>CGI.REMOTE_ADDR
  </code></pre>
  
  <p>But this is giving me the user's IP address. How can I verify that the call is coming from <code>bbb.com</code>? Is there a better way?</p>
  
  <p>All, that <code>bbb.com</code> gets is the link <code>aaa.com/file.cfm</code></p>