examples/rules.txt
author Mahlon E. Smith <mahlon@martini.nu>
Fri, 04 May 2012 10:25:31 -0700
changeset 25 6ceafe5ffe7f
parent 22 822094314703
child 33 ba41bfbe87a2
permissions -rw-r--r--
Added tag 0.1.1 for changeset d3b6f9ccbe20


#------------------------------------------------------------------------------
# This is an example volta rules file.  In order for volta to use it,
# it needs to be converted to a database for fast lookup.  See the
# README file, distributed with volta, for instructions.
#------------------------------------------------------------------------------

# Force all requests to Google to use SSL
# http://www.google.com/search?q=test --> https://www.google.com/search?q=test
google.com * 302:https://www.google.com

# Transparently alter all uploaded images on imgur to be my face:  :)
i.imgur.com \.(gif|png|jpg)$ http://www.martini.nu/images/mahlon.jpg

# Expand a local, non qualified hostname to a FQDN (useful alongside the
# 'dns_defnames' squid setting to enforce browser proxy behaviors):
local-example * local-example.company.com

# Cause all blog content except for 2011 posts to permanently redirect to
# an archival page.
martini.nu /blog/2011 -
martini.nu /blog 301:martini.nu/content-archived.html

# Send all requests to reddit/r/WTF/* through a lua script for
# further processing.
reddit.com /r/wtf lua:examples/lua-example.lua