Arcane Shield is a project that aims to collect addresses such as public proxies, VPNs and Tor exit nodes from several sources with the objective of using them to block malicious requests to an web service.
pip install arcaneshield
To get the list of malicious addresses:
from arcaneshield.sources.all import get_ip_list()
iplist = get_ip_list()
To automatically create a AWS WAF Regional rule and populate the corresponding IP Sets, first make sure to set AWS_PROFILE and AWS_DEFAULT_REGION, then run:
from arcaneshield.aws import protect as aws_protect
aws_protect()
G4mbl3r for initial scripts and several sources