The gopherd.conf file contains a list of directives that alter the behaviour of the gopherd(8) server. It is composed of lines of the form:
Tokens are case insensitive and the value field will change, depending on the token. A pound sign at the beginning of a line signifies a comment line.
Quick pseudo grammer
The following tokents are recognized
If you're using the site access system, you'll want to set the default access level *first*. All following entries inherit the default that you set. For instance, if your default is "!read,!browse,!search' and you want to turn on browse access for a certain machine you can just specify "browse", not "!read,browse,!search"
Sample gopherd.conf file
#
# Extension mapping
#
ext: .hqx 4 0 HQX
ext: .gif I 9 GIF
ext: .pcx I 9 PC_Paintbrush
ext: .pict I 9 PICT
ext: .tiff I 9 TIFF
ext: .jpg I 9 JPEG
#
ext: .au s s U-law
ext: .snd s s U-law
ext: .html h GET /h WWW
ext: .src 7 waissrc: WSRC
ext: .tar.Z 9 9 TARZ
ext: .zip 5 9 PKzip
ext: .zoo 5 9 Zoo
ext: .arc 5 9 Arc
ext: .lzh 5 9 Lharc
ext: .exe 5 9 PC_executable
ext: .ps 0 0 Postscript
#
# filename extensions to ignore
#
ignore: lost+found
ignore: lib
ignore: bin
ignore: core
ignore: tmp
ignore: etc
ignore: usr
ignore: hate_mail_to_paul
Bummermsg: No access for turnip infidels!
# Don't allow anyone to read or browse us,
# anyone can search though.
access: default !browse,!read,search
#
# allow any hostname that ends with
# turnip.com to browse and read
#
access: .turnip.com browse,read
#
# Allow anyone on a class C network
# (starting with 192) to browse
#
access: 192. browse
#
# Allow anyone on the 128.101.193 network
# to read from us.
#
access: 128.101.193 read
#
# Turn off searching for these bozos
# they can't do anything
#
access: bozo.org !search