PrePAN

Sign in to PrePAN

Plack::Middleware::Security::Simple Simple security filtering

Author
robrwo@github
Date
URL
Status
In Review
Good

Synopsis


enable 'Security::Simple',
  rules     => [
     {
       name  => 'some rule',
       from    => 'request',
       env     => 'user_agent',
       match => qr/NastySpider/,
       return => 403,
     },
     ...
  ],
  pre_check => sub { ... },
  post_check => sub { ... };



Description

This middlware would provide simple filtering of requests/responses, with an optional callback to log or configure blocking.

Comments

Please sign up to post a review.