This module is contained in the mod_firewall.h
and
mod_firewall.c
files, and
is compiled in when the user adds it to Configuration file. It provides a kind of firewall protection based on client IP address and request time.
With this module, you can protect sensitive URL such as CGI script to overload : many accesses by a single host in a short time !
For example, if you protect url mycgi.cgi for 10 requests within 10 sec, then if a host requests it more than 10 times in less than 10 sec, it will be rejected. Access will be allowed again after 10 sec.
AddModule modules/firewall/mod_firewall.o
Configure
and make
.
Syntax: Firewall_database database_filename
Context: access.conf
Override:
Status:
Module: mod_firewall
This directive specifies the database filename which describes which hosts
are to be protected and how.
For exmple you can add that line to access.conf :
Firewall_database /home/maxyoyo/internet/www/conf/urls
Syntax: Firewall_maxhosts maximum_number_of_hosts
Context: access.conf
Override:
Status:
Module: mod_firewall
Firewall_maxhosts 200
Displays the current status of the firewall.
It shows a table with for each url which host has accessed it, how
many times and time elapsed since the last access.
To install it you shoul add something like that :
<Location /Firewall>
SetHandler firewall-handler
order deny,allow
allow from .essi.fr
allow from .cica.fr
deny from all
</Location>