Skip to content

foospidy/sigsci-country-block

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sigsci-country-block

Signal Sciences Block Attacking IP Addresses by Country

This script will query the Signal Sciences API to identify attacking IP addresses and if an IP address is sourced from the country you specify it will add that IP to the blacklist. IP lookups are based on the MaxMind database.

Usage

Export the following environment variables:

export SIGSCI_EMAIL=<api-account-email>
export SIGSCI_PASSWORD=<api-account-password>
export SIGSCI_CORP=<corp-name>
export SIGSCI_SITE=<site-name>

Use make to build and run (this will create a virtualenv to run in):

make build
make run country=<country-iso-code>

To run as deamon make sure you have the python dependencies installed, e.g. pip install --upgrade future requests geoip2

./sigsci-country-block.py --country <ccountry-iso-code> &

About

Signal Sciences Block Attacking IP Addresses by Country

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published