Mail::Abuse::Filter::IP - Filter incidents according to its origin IP
use Mail::Abuse::Filter::IP; my $f = new Mail::Abuse::Filter::IP; $report->filter([$f]);
Removes those events from a
Mail::Abuse::Report whose origin does not match the rules enforced by this module. The actual rules must be specified in the configuration file for the abuse report.
The following configuration keys are recognized:
- source ip within
If specified, the source IP address must fall within the subnets given as aguments to this configuration keys. Multiple subnets can be specified by separating them with whitespace or commas.
If left unspecified, this field defaults to "0/0", which matches any source IP address.
Subnets can be written in any format supported by NetAddr::IP.
- source ip outside
If specified, the source IP address must not lie within the subnets specified. Subnets can be separated with spaces or commas.
- debug ip filter
Set to a true value to see various debugging messages.
The following methods are implemented in this class.
This function receives a
Mail::Abuse::Incidentobject. It returns a true value if the incident should be handled or false otherwise. This function will be generally called by the
Mail::Abuse::Reportobject when requested to filter its events.
Mail::Abuse::Reportobject will be incremented for each incident removed.
None by default.
This code and all accompanying software comes with NO WARRANTY. You use it at your own risk.
This code and all accompanying software can be used freely under the same terms as Perl itself.
Luis E. Muñoz <email@example.com>
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 220:
Non-ASCII character seen before =encoding in 'Muñoz'. Assuming ISO8859-1