SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

perl-CGI-Application-Plugin-RateLimit rpm build for : OpenSuSE. For other distributions click perl-CGI-Application-Plugin-RateLimit.

Name : perl-CGI-Application-Plugin-RateLimit
Version : 1.0 Vendor : obs://build_opensuse_org/devel:languages:perl
Release : lp155.7.1 Date : 2023-07-20 15:56:05
Group : Development/Libraries/Perl Source RPM : perl-CGI-Application-Plugin-RateLimit-1.0-lp155.7.1.src.rpm
Size : 0.02 MB
Packager : https://www_suse_com/
Summary : Limits runmode call rate per user
Description :
This module provides protection against a user calling a runmode too
frequently. A typical use-case might be a contact form that sends email.
You\'d like to allow your users to send you messages, but thousands of
messages from a single user would be a problem.

This module works by maintaining a database of hits to protected runmodes.
It then checks this database to determine if a new hit should be allowed
based on past activity by the user. The user\'s identity is, by default,
tied to login (via REMOTE_USER) or IP address (via REMOTE_IP) if login info
is not available. You may provide your own identity function via the
identity_callback() method.

To use this module you must create a table in your database with the
following schema (using MySQL-syntax, although other DBs may work as well
with minor alterations):

CREATE TABLE rate_limit_hits (
user_id VARCHAR(255) NOT NULL,
action VARCHAR(255) NOT NULL,
timestamp UNSIGNED INTEGER NOT NULL,
INDEX (user_id, action, timestamp)
);

You may feel free to vary the storage-type and size of user_id and action
to match your usage. For example, if your identity_callback() always
returns an integer you could make user_id an integer column.

This table should be periodically cleared of old data. Anything older than
the maximum timeframe being used can be safely deleted.

*IMPORTANT NOTE*: The protection offered by this module is not perfect.
Identifying a user on the internet is very hard and a sophisticated
attacker can work around these checks, by switching IPs or automating login
creation.

RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-C/15.5/noarch

Content of RPM  Provides Requires

Download
ftp.icm.edu.pl  perl-CGI-Application-Plugin-RateLimit-1.0-lp155.7.1.noarch.rpm
     

Provides :
perl(CGI::Application::Plugin::RateLimit)
perl-CGI-Application-Plugin-RateLimit

Requires :
perl(:MODULE_COMPAT_5.26.1)
perl(CGI::Application) >= 4
perl(Class::Accessor) >= 0.25
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1


Content of RPM :
/usr/lib/perl5/vendor_perl/5.26.1/CGI
/usr/lib/perl5/vendor_perl/5.26.1/CGI/Application
/usr/lib/perl5/vendor_perl/5.26.1/CGI/Application/Plugin
/usr/lib/perl5/vendor_perl/5.26.1/CGI/Application/Plugin/RateLimit.pm
/usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi
/usr/share/doc/packages/perl-CGI-Application-Plugin-RateLimit
/usr/share/doc/packages/perl-CGI-Application-Plugin-RateLimit/Changes
/usr/share/doc/packages/perl-CGI-Application-Plugin-RateLimit/README
/usr/share/man/man3/CGI::Application::Plugin::RateLimit.3pm.gz

 
ICM