title: Localhost only endpoint
body: <p>Let's say that I have an API accessible for anybody from the Internet, but one endpoint e.g </p>
  
  <p><code>hxxps://my-domain.com/local</code> I'd want to be only accessible from localhost</p>
  
  <p>Are there other possibilities when it comes to creating localhost only endpoint than checking whether IP is</p>
  
  <p><code>::1</code> | <code>localhost</code> |<code>127.0.0.1</code> ?</p>
  
  <p>Or some tricks at HTTP Server(nginx) level?</p>