title: HAproxy: Accept only localhost requests
body: <p>I have a backend server running for which HAproxy is the load balancer. The configuration which redirects to the respective server from haproxy is:</p>
  
  <pre><code>acl use_be_server hdr(host) -i beserver.com
  
  use_backend beserver if use_be_server    
  
  backend beserver
      server  my_server   127.0.0.1:8001
  </code></pre>
  
  <p>Now, beserver.com is used <strong>only from localhost</strong> and should not be accessed from else where for security reasons.</p>
  
  <p>My question is, can I configure HAproxy to accept requests only from localhost for this port number? </p>