changeset 118:f0a86e36d33f puppet-3.6

Ban IODC bot, because they can't behave and don't have robots.txt instructions
author IBBoard <dev@ibboard.co.uk>
date Tue, 19 Jul 2016 20:25:44 +0100
parents 3fdde0638538
children 95502bafeaa3
files manifests/templates.pp
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/manifests/templates.pp	Fri Jul 08 20:34:29 2016 +0100
+++ b/manifests/templates.pp	Tue Jul 19 20:25:44 2016 +0100
@@ -99,6 +99,14 @@
 		proto => tcp,
 		action => 'reject',
 	}
+	firewall { '099 Blacklist IODC bot':
+		# IODC bot makes too many bad requests, and contact form is broken
+		# They don't publish a robots.txt name, so firewall it!
+		source => '86.153.145.149',
+		dport => [ 80, 443 ],
+		proto => tcp,
+		action => 'reject',
+	}		
 	firewallchain { 'GREATFIREWALLOFCHINA:filter:IPv4':
 		ensure => present,
 	}