summaryrefslogtreecommitdiff
path: root/tests/lighttpd.conf
diff options
context:
space:
mode:
authorJan Kneschke <jan@kneschke.de>2005-08-24 07:22:03 +0000
committerJan Kneschke <jan@kneschke.de>2005-08-24 07:22:03 +0000
commit06becfacfc846da6fb53edeef24d0ec1f7ad16c7 (patch)
treeb44bb04571f1568a1f37ceb5a63677d7fbfbce36 /tests/lighttpd.conf
parentf387d898702c05eac22045437c04562e00d466bb (diff)
downloadlighttpd1.4-06becfacfc846da6fb53edeef24d0ec1f7ad16c7.tar.gz
lighttpd1.4-06becfacfc846da6fb53edeef24d0ec1f7ad16c7.zip
check that the anti deeplinking via referer matches work
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@617 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'tests/lighttpd.conf')
-rw-r--r--tests/lighttpd.conf6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/lighttpd.conf b/tests/lighttpd.conf
index 5a65681a..5960a8d2 100644
--- a/tests/lighttpd.conf
+++ b/tests/lighttpd.conf
@@ -168,3 +168,9 @@ $HTTP["remoteip"] =~ "(127.0.0.1)" {
url.redirect = ( "^/redirect/$" => "http://localhost:2048/%1" )
}
}
+
+# deny access for all image stealers
+$HTTP["referer"] !~ "^($|http://www\.example\.org)" {
+ url.access-deny = ( ".jpg", ".jpeg", ".png" )
+}
+