blackipslist@1.0.0

blackipslist@1.0.0

Simple black IP list to ban specific IPs to access a site.

By @mantradev
Depends on tampcache

Install with:

$ mantrad download-component blackipslist@1.0.0

Or install last version with:

$ mantrad download-component blackipslist

README.md

blackipslist component

This is a simple Mantra component to block access to a site if the request comes from an IP which is included in a black list.

The component defines a simple data model to include the black IPs:

{
    "entities" : [
        {
            "name" : "blackipslist",
            "fields": [
                { "name" : "ip", "type" : "string" },
                { "name" : "created", "type" : "datetime"}
            ],
            "indexes": [ ["ip"] ]
        }
    ]
}

The component defines a Mantra middleware with a weight of -1150 by default.

You need to include in the data model the IPs to banned.

The component logs each time an incoming banned black listed IP is requested.