# Configuration file for SwiftSurf by Sebastien Ailleret

########################################################
# General configurations

# Port used by the proxy (will be important for configuring your browser)
port 8080

# write the log to a file (default stdout)
#logFile /var/log/swiftsurf.log

# from where can we connect to the proxy (only connect from inside school)
#connectFrom 192.97.*

########################################################
# profile configuration

profile students:pass1
  allowedUrl
    *.school.edu/*
    *.inria.fr/*
  end default # replace other urls by standard green gif
    # the default is optional

  noCONNECT   # https is forbidden for students
  methods GET POST end
    # for security, control allowed http methods
endProfile

###

profile teachers:pass2  # nothing special
endProfile

###

profile admin:pass3
  allCONNECT  # https on any port number

  forbiddenFile swiftsurf.forb
     # replace adds by default gif
  forbiddenUrl *sex* *xxx* end red
     # replace sex by red gif
  forbiddenUrl *me.gif end transparent
     # egocentrists become transparent
endProfile

########################################################
# optional stuffs

# Redirect requests to another proxy
#nextProxy www 8080
#nextProxy www 8080 login:pass   # if the proxy require authentication

stats 2 # get file and IP

# Which sites do not need the following proxy
#noProxy
#*.inria.fr
#end   #This end is optional

# maximum number of simultaneous connections (infinite if not set)
#maxConns 20

# define a new timeout (default 30 sec)
# 0 for no timeout
#timeout 30

#change user-agent (cf msn.com)
#overrideUseragent Mozilla/4.76

#forbiddenReqHeader  # no cookies, please
#  *ookie*
#end

addReqHeader "Message: Hello you"
addAnsHeader "Message: Page provided by swiftsurf"
