examples/rules.txt
changeset 22 822094314703
child 33 ba41bfbe87a2
equal deleted inserted replaced
21:3510b50c6694 22:822094314703
       
     1 
       
     2 #------------------------------------------------------------------------------
       
     3 # This is an example volta rules file.  In order for volta to use it,
       
     4 # it needs to be converted to a database for fast lookup.  See the
       
     5 # README file, distributed with volta, for instructions.
       
     6 #------------------------------------------------------------------------------
       
     7 
       
     8 # Force all requests to Google to use SSL
       
     9 # http://www.google.com/search?q=test --> https://www.google.com/search?q=test
       
    10 google.com * 302:https://www.google.com
       
    11 
       
    12 # Transparently alter all uploaded images on imgur to be my face:  :)
       
    13 i.imgur.com \.(gif|png|jpg)$ http://www.martini.nu/images/mahlon.jpg
       
    14 
       
    15 # Expand a local, non qualified hostname to a FQDN (useful alongside the
       
    16 # 'dns_defnames' squid setting to enforce browser proxy behaviors):
       
    17 local-example * local-example.company.com
       
    18 
       
    19 # Cause all blog content except for 2011 posts to permanently redirect to
       
    20 # an archival page.
       
    21 martini.nu /blog/2011 -
       
    22 martini.nu /blog 301:martini.nu/content-archived.html
       
    23 
       
    24 # Send all requests to reddit/r/WTF/* through a lua script for
       
    25 # further processing.
       
    26 reddit.com /r/wtf lua:examples/lua-example.lua
       
    27