Robert Rothenberg · @rrwo
238 followers · 271 posts · Server fosstodon.org

I have uploaded a new version of the greylist middleware to metacpan.org/release/RRWO/Plac

This allows you to throttle requests with different rates based on net blocks or groups of netblocks.

This version adds a "norobots" rate that blocks all requests except for "robots.txt".

It also adds "allowed" and "rejected" rates as synonyms for "whitelist" and "blacklist".

#perl #plack #cpan

Last updated 1 year ago

Robert Rothenberg · @rrwo
222 followers · 201 posts · Server fosstodon.org

I have uploaded a new version of Plack::Middleware::Greylist to metacpan.org/release/RRWO/Plac

This is middleware for rate-limiting web requests based on netblock.

You can specify different rates for different netblocks or groups of netblocks.

This version adds some minor updates to the documentation.

#cpan #perl #plack

Last updated 1 year ago

Robert Rothenberg · @rrwo
215 followers · 215 posts · Server fosstodon.org

I have uploaded a new version of Catalyst::Plugin::Static::File to metacpan.org/release/RRWO/Cata

This is a lightweight plugin for serving a static file that plays nicely with X-Sendfile, ETag and ConditionalGET middleware.

This version re-adds a redundant file existence check, due to the behaviour of some testing systems.

#cpan #perl #catalyst #plack #psgi

Last updated 1 year ago

Robert Rothenberg · @rrwo
215 followers · 219 posts · Server fosstodon.org

I have uploaded a new version of Plack::Middleware::Statsd to metacpan.org/release/RRWO/Plac

This is a plugin for monitoring.

The new version improves some of the documentation and reverts back to using Try::Tiny for error trapping.

#cpan #perl #plack #statsd

Last updated 1 year ago

Robert Rothenberg · @rrwo
210 followers · 179 posts · Server fosstodon.org

I have uploaded a new version of Catalyst::Plugin::Static::File to metacpan.org/release/RRWO/Cata

This is a lightweight alternative for serving a single file that plays nicely with Middleware.

Recent versions some documentation types, improve some code internals (thanks @barubary) and improve tests.

Perl@chirp.social

#cpan #plack #catalyst #perl

Last updated 1 year ago

Robert Rothenberg · @rrwo
208 followers · 189 posts · Server fosstodon.org

I've uploaded a new version of the module Catalyst::Plugin::Static::File to metacpan.org/release/RRWO/Cata

This is a lightweight plugin for serving a single static file. It also plays well with a lot of middleware.

This release fixes some potential bugs, and removes a non-core dependency.

#perl #cpan #catalyst #plack

Last updated 1 year ago

Robert Rothenberg · @rrwo
200 followers · 268 posts · Server fosstodon.org

I had started on middleware to block requests from AWS.

I might finish that.

Anyone interested in it?

#perl #plack

Last updated 1 year ago

Mark Gardner ‍:sdf: · @mjgardner
642 followers · 3846 posts · Server social.sdf.org

@vandys @randomgeek @codinghorror As a hacker I will never besmirch as a standard or for light-use web scripts, but a lot of sins were committed with the two.

These days the done thing is to use and a framework like or in a persistent app server. You don’t have to write nearly as much code, either. plackperl.org

The middleware can even run your code as a CGI or script if you reallly want.

#perl #cgi #psgi #mojolicious #dancer2 #plack #fastcgi

Last updated 1 year ago

Robert Rothenberg · @rrwo
167 followers · 120 posts · Server fosstodon.org

A new version of the Plack::Middleware::Security::Simple has been uploaded to

metacpan.org/release/RRWO/Plac

This is a minor change that can block requests for .c and .cc files.

#cpan #perl #plack #security #infosec #filter

Last updated 1 year ago

Mark Gardner ‍:sdf: · @mjgardner
592 followers · 3248 posts · Server social.sdf.org

On this day in 2008, the Software Foundation released mod_perl 2.0.4, compatible with the December 2007 release of v5.10: lists.apache.org/thread/shyvjn

embeds a runtime in the Apache web server, hooking it into all stages of the request and response process as well as configuration file logic. Before the advent of and in the 2010s it was the recommended platform for persistent Perl web applications without the overhead of legacy .

#apache #perl #modperl #httpd #psgi #plack #cgi #webdev #asf

Last updated 1 year ago

Robert · @rrwo
148 followers · 354 posts · Server fosstodon.org

I have released a new version of the module to Plack::Middleware::Security::Simple metacpan.org/release/RRWO/Plac

This is middleware to block HTTP requests, and includes rules for common vulnerability scans.

The changes add a new rule and some extensions to existing rules.

There's no point in serving requests for Word Press, PHP script or ASP scripts on a Perl-based site. So you may as well block them immediately.

This also works well with fail2ban.

#perl #cpan #plack #security

Last updated 1 year ago

Robert · @rrwo
138 followers · 297 posts · Server fosstodon.org

I've uploaded a new version of Plack::Middleware::Greylist to

metacpan.org/release/RRWO/Plac

This module allows you to rate limit requests based on IP, netblock or groups of netblocks.

I've found it useful to limit bad bots coming from different IPs in the same cloud services.

#cpan #perl #plack

Last updated 2 years ago

Mark Gardner · @mjgardner
296 followers · 495 posts · Server social.sdf.org

@js @berkes @simon for hasn't been a best practice since the release of the spec and middleware in 2009. There are several very good frameworks that build on PSGI, described here for folks coming from CGI: metacpan.org/pod/CGI::Alternat

The CGI module itself was removed from the core Perl distribution with v5.20 in 2014 perldoc.perl.org/perl5200delta

For anything but the simplest single-user apps, you are permitted to point and laugh at anyone that still uses CGI.

#cgi #perl #webdev #psgi #plack

Last updated 2 years ago

Robert · @rrwo
108 followers · 221 posts · Server fosstodon.org

I've uploaded a new version of Plack::Middleware::Security::Simple to metacpan.org/release/RRWO/Plac

This is middleware for implementing filters. It also has common rules for filtering out common attacks.

#cpan #perl #plack #security

Last updated 2 years ago

Robert · @rrwo
84 followers · 156 posts · Server fosstodon.org

I uploaded a new version of Plack::Middleware::greylist to

metacpan.org/release/RRWO/Plac

This is middleware for implementing request rate limiting for individual IPs, network blocks or groups of network blocks.

#cpan #perl #plack

Last updated 2 years ago

Robert · @rrwo
76 followers · 134 posts · Server fosstodon.org

I've released a new version of Plack::Middleware::Security::Simple

metacpan.org/release/RRWO/Plac

This is a middleware for implementing filters.

#perl #plack #security

Last updated 2 years ago

Robert · @rrwo
74 followers · 132 posts · Server fosstodon.org

I have updated Plack::Middleware::Statsd metacpan.org/release/RRWO/Plac

This is middleware for logging metrics to .

This change includes some minor code improvements, and updates to the documentation.

#perl #plack #statsd

Last updated 2 years ago

Robert · @rrwo
67 followers · 136 posts · Server fosstodon.org

I've released a new version of Plack::Middleware::Greylist on

metacpan.org/release/RRWO/Plac

The release has a minor bugfix. (If you're already using it, you won't need to upgrade.)

This is middleware for rate limiting. It allows you to rate list groups of netblocks.

The main use case is collectively rate limiting requests from bots in AWS or Azure.

#cpan #perl #plack

Last updated 2 years ago

Robert · @rrwo
64 followers · 111 posts · Server fosstodon.org

I've released a new version of Plack::Middleware::Greylist on .

This allows you to add rate limiting based on ip, netblock or groups of netblocks to a application.

This version has a minor bug fix and documentation changes.

metacpan.org/release/RRWO/Plac

#cpan #perl #plack

Last updated 2 years ago

Robert · @rrwo
60 followers · 166 posts · Server fosstodon.org

New version of Plack::Middleware::Greylist released.

metacpan.org/release/RRWO/Plac

This allows you to throttle traffic. But you can apply rate limits per IP address, per netblock or even groups of netblocks.

#plack #perl

Last updated 2 years ago