title: Allow request coming from specific IP only
body: <p>I have application hosted Apache UNIX, and I am allowing users to access the application url from citrix environment (from citrix machine). </p>
  
  <p>However, currently its possible to access the url from all the connected machines. I would like to put the restriction that it should be only accessed from citrix machine. So if any one needs to access it, he needs access to citrix machine.</p>
  
  <p>I tried with below:</p>
  
  <pre><code>&lt;Directory /APP&gt;
  
      Order Deny,Allow
  
      Deny from all
  
      Allow from 160.120.25.65
  
      Allow from 127
  
  &lt;/Directory&gt;
  </code></pre>
  
  <p>it didn't work. Any suggestion?</p>
  
  <p>Few replied with iptables solution, however this one loaded on Solaris (it doesn't have builtin firewall to OS as linux). </p>