X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/614fef3c130988eeb932301a7098977e3d3893fe..6b24ce4de98ac4038e2396e0b8163804c38457bb:/config/lighttpd.conf?ds=sidebyside diff --git a/config/lighttpd.conf b/config/lighttpd.conf index 4d7a7f4ab..a224f4562 100644 --- a/config/lighttpd.conf +++ b/config/lighttpd.conf @@ -39,10 +39,17 @@ $HTTP["remoteip"] == "128.40.168.98" { } # -# IP blocked at SteveC's request as it was trying to download the -# history of every object in the database one at a time +# Pull in host blocks # -$HTTP["remoteip"] == "143.210.16.160" { url.access-deny = ("") } +include_shell "lighttpd-host-blocks.sh" + +# +# Block some troublesome robots +# +$HTTP["useragent"] =~ "msnbot" { url.access-deny = ("") } +$HTTP["useragent"] =~ "Twiceler" { url.access-deny = ("") } +$HTTP["useragent"] =~ "Baiduspider" { url.access-deny = ("") } +$HTTP["useragent"] =~ "Sosospider+" { url.access-deny = ("") } # # Rule to block tilesAtHome when somebody decides to queue vast