modifiers.
</p>

<h3 id="access-control">Access Control</h3>

<p>
By using the <code>399</code> status code, it is possible to implement access control using mruby.
The example below restricts access to requests from <code>192.168.</code> private address.
</p>

<div class="example">
<div class="caption">Example. Restricting access to 192.168.</div>
<pre><code>paths:
  &quot;/&quot;:
    mruby.handler: |
      lambda do |env|
        if /\A192\.168\./.match(env[&quot;REMOTE_ADDR&quot;])
          return [399