]> git.openstreetmap.org Git - rails.git/blobdiff - config/lighttpd-host-blocks.sh
Use a script to pull in host blocks and add some robot blocks from
[rails.git] / config / lighttpd-host-blocks.sh
diff --git a/config/lighttpd-host-blocks.sh b/config/lighttpd-host-blocks.sh
new file mode 100644 (file)
index 0000000..3022e74
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+if [ -d /etc/firewall ]
+then
+  for ip in $(ls /etc/firewall)
+  do
+    echo "\$HTTP[\"remoteip\"] == \"$ip\" { url.access-deny = (\"\") }"
+  done
+fi