summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorTimo Weingärtner <timo@tiwe.de>2013-01-04 21:16:37 +0100
committerTimo Weingärtner <timo@tiwe.de>2013-01-07 14:18:40 +0100
commit8d177fb1f42cb80ffbf678669cd726d40f26f123 (patch)
tree4d283d547e78b7a5e9a7f94fc60f68a1dcdf1c97 /examples
parentb976b61bd47d0a404d94e390c429ac5e336b261a (diff)
downloadopenssh-known-hosts-8d177fb1f42cb80ffbf678669cd726d40f26f123.tar.gz
implement hostname filtering
Fixes GH-1.
Diffstat (limited to 'examples')
-rw-r--r--examples/curl.filter9
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/curl.filter b/examples/curl.filter
new file mode 100644
index 0000000..ff7f71b
--- /dev/null
+++ b/examples/curl.filter
@@ -0,0 +1,9 @@
+# example filter file, can be used with any plugin
+# deny some subareas first
+# in most cases you won't need that
+deny sub\.example\.com$
+deny ^2001:db8:f00:
+# then allow what we are downloading the keys for
+allow \.example\.com$
+allow ^2001:db8:
+allow ^192\.0\.2\.