Sample .spyrc
# Config file for spyd Ver 1.0a1 95/12/15
# Got rid of comma delimiters
#
# Config file for spyd Ver 1.0a0 95/08/29
#
# Security path:
#
# Check if Server is set to on; if true
# Check if LoadAvg is under max_load; if true
# Check if host is explicitely banned; if false
# Check if host is permitted based on time of day; if true
# take a picture
# if any of the above failed
# return error code giving reason why access was denied
#
# Name { }
# Limited to 63 characters
#
Name { Todd Green }
#
# Title { }
# Limited to 63 characters
#
Title { Software Engineer }
#
# Server { [on | off] }
#
Server { on }
#
# LoadAvg { <max load> }
# 0.0 == ignore load avg
#
LoadAvg { 5.0 }
#
# Group $<group name> { <<host name> | <group name>> ... }
#
# Group name must have been previously defined, and
# groups must not be self-referenitial (unless you like
# infinite loops ;)
#
# Group names are limited to 32 characters.
#
# Each host or subdomain may either be the wildcard "*"
# allowing all possibilites or an actual name
# but cannot be mixed (.e.g.
# Valid:
# *.subdomain.subdomain.domain (*.cica.indiana.edu)
# host.*.*.domain (endorphin.*.*.edu)
# Invalid:
# *ost.subdomain.subdomain.domain (*phin.cica.indiana.edu)
#
# Note that you must specify a FQDN (Fully Qualified Domain Name).
# If you really want to get around this you could add something
# like: myhost.*.*.*, though I would not recommend it for security
# reasons. Along the same lines, IP numbers will not be accepted.
# All machines must be DNS resolvable.
#
Group $world { *.*.*.* }
Group $cica { *.cica.indiana.edu }
Group $indiana { *.*.indiana.edu }
Group $ucs { *.ucs.indiana.edu }
Group $cica_ucs { $cica $ucs }
Group $another_example { $cica rtfm.mit.edu }
Group $cs { *.cs.indiana.edu }
#
# Explicitely deny access, overriding any Time entries
#
# NoAccess { <<group name> | <host name>> ... }
#
NoAccess { wahn.extreme.indiana.edu $cs }
#
# Time { Default {
# <start time> <end time> { <<group name> | <host name>>
# [allow | deny] ... }
# .
# .
# .
# }
# [Sunday - Saturday] {
# <start time> <end time> { <<group name> | <host name>>
# [allow | deny] ... }
# .
# .
# .
# }
#
# The parser works from top to bottom, and left to right looking for the
# *last* possible match (e.g. say you had ...
# { foo.cica.indiana.edu allow, *.*.indiana.edu deny } then foo would
# be denied access because it fell within the *.*.indiana.edu wildcard.
Time {
Default {
0800 1700 { $world deny $indiana allow }
1200 1300 { $world deny $cica allow wild.extreme.indiana.edu allow }
1701 2400 { $world allow }
}
Saturday { 0000 2400 { $world allow } }
Sunday { 0000 2400 { $world allow } }
}
#
# Allow this host to process the image before sending
# it off to the client, if the client so requests
#
# LocalProcessing { [ on | off ] }
#
LocalProcessing { on }
Page Last Modified on: December 19, 1995,
© Center for Innovative Computer Applications