zutto / spamhaus-blocklist

bash script to pull list of IP blocks from spamhaus and format them to nginx format

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

spamhaus ip blocklist updater

This is a tiny tool for automating the update process of nginx blocklist.

usage: ./block.sh /desti/nation/file.conf

and then inside http {} directive: "include /desti/nation/file.conf;" to include the denied ip blocks.

-- You can also edit the block.sh and ignore first argument.

About

bash script to pull list of IP blocks from spamhaus and format them to nginx format

License:GNU General Public License v3.0


Languages

Language:Shell 100.0%