This scripts run on Ubuntu.
git clone git://github.com/gagomap/nginx_blacklists.git
Copy autoclock.sh to /etc/cron.daily
Then run command:
chmod +x /etc/cron.daily/autoblock.sh
/etc/cron.daily/autoblock.sh
Link:
https://github.com/almer-t/tools
https://github.com/oohnoitz/nginx-blacklist
https://github.com/Stevie-Ray/apache-nginx-referral-spam-blacklist
https://github.com/mariusv/nginx-badbot-blocker
https://github.com/cba85/nginx-spam-referral
https://github.com/piwik/referrer-spam-blacklist