-
Notifications
You must be signed in to change notification settings - Fork 0
This module aims to provide protection from aggressive clients by blocking or reporting them with a script.
License
hackman/mod_ipblock
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This module aims to provide protection from aggressive clients by blocking or reporting them with a script. You will be able to add a limit of simmultaneous connections. When this limit is reached the module will execute the defined command. You can then write a simple bash script that can run commands with sudo(8) in order to limit the client or notify the admins. The module provides two options: IPBlockLimit - the number of simmultaneous connections on which the module will execute the command defined by IPBlockCmd IPBlockCmd - the command that will be executed when the limit is reached The script receives the following arguments: $1 - the offending IP address $2 - the number of simmultaneous connections $3 - the limit set in the httpd.conf $4 - the last URL that was accessed Example configuration: <IfModule mod_ipblock.c> IPBlockLimit 1000 IPBlockCmd "/usr/local/bin/block" </IfModule> Here is an example of the arguments that the script receives: 127.0.0.1 3 2 example.com/path/to/some/file For more information and comments: Jabber: hackman@jabber.org ICQ: 7556201 Marian Marinov <mm@yuhu.biz> URL: http://github.com/hackman/mod_ipblock
About
This module aims to provide protection from aggressive clients by blocking or reporting them with a script.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published