path: root/src/usr/local/share/protocols/gopher.pat
diff options
authorRenato Botelho <>2015-08-25 08:08:24 -0300
committerRenato Botelho <>2015-08-25 14:49:54 -0300
commit46bc6e545a17e77202aaf01ec0cd8d5a46567525 (patch)
tree32d18dda436ec739c67c489ceb771e8629cd926f /src/usr/local/share/protocols/gopher.pat
parent4d9801c2dbd2b3e54a39578ee62b93af66607227 (diff)
Move main pfSense content to src/
Diffstat (limited to 'src/usr/local/share/protocols/gopher.pat')
1 files changed, 25 insertions, 0 deletions
diff --git a/src/usr/local/share/protocols/gopher.pat b/src/usr/local/share/protocols/gopher.pat
new file mode 100644
index 0000000..773016f
--- /dev/null
+++ b/src/usr/local/share/protocols/gopher.pat
@@ -0,0 +1,25 @@
+# Gopher - A precursor to HTTP - RFC 1436
+# Pattern attributes: good slow notsofast undermatch
+# Protocol groups: document_retrieval obsolete ietf_rfc_documented
+# Wiki:
+# Copyright (C) 2008 Matthew Strait, Ethan Sommer; See ../LICENSE
+# Gopher servers usually run on TCP port 70.
+# This pattern is lightly tested using .
+# This matches the server's response, but naturally only if it is a
+# directory listing, not if it is sending a file, because then the data
+# is totally arbitrary.
+# Matches the client saying "list what you have", then the server
+# response: one of the file type characters, any printable characters, a
+# tab, any printable characters, a tab, something that looks like a
+# domain name, a tab, and then a number which could be the start of a
+# port number.
+# "0About internet Gopher\tStuff:About us\\t70"
+# "\r7search by keywords on protein data using wais\twaissrc:/protein_all/protein\\t70"
+^[\x09-\x0d]*[1-9,+tgi][\x09-\x0d -~]*\x09[\x09-\x0d -~]*\x09[a-z0-9.]*\.[a-z][a-z].?.?\x09[1-9]
OpenPOWER on IntegriCloud