# FilterProxy Configuration file. # # Be aware that FilterProxy will automatically rewrite this file. # It will also automatically reload this file if it detects that it # has been modified, so there is no need to kill FilterProxy when # editing by hand. # # This is a normal perl file, and will be eval'ed by FilterProxy # to load it's configuration. I recommend that initially, you use # the forms interface to add stuff, and then look at this file to # see its structure. $FilterProxy::CONFIG = { 'info' => 1, 'filters' => { 'http://.*\\.js$' => { 'Rewrite' => { 'filters' => [ '0_JAVASCRIPT: strip regex /^.*doubleclick\\.net.*$/', 'IGNORE_ADS: ignore ADS' ] } }, 'http://source/\\?.*' => { '-Rewrite' => {}, 'Source' => {} }, 'http://[^/]*\\.bbc\\.co\\.uk/' => { 'Rewrite' => { 'filters' => [ 'FLASHVER: rewrite regex /ssit_NavY\\.charAt\\(ssit_NavY\\.indexOf\\(\'\\.\'\\)-1\\)/ as (ssit_NavY.split(\'.\')[0]).split(\' \').pop()' ] } }, '.*' => { 'DeAnim' => {}, 'Compress' => {}, 'Header' => { 'remove' => [ 'title', 'x-meta.*' ], 'add' => '', 'allow' => '' } } }, 'authenable' => 0, 'users' => {}, 'mime_types' => [ 'text/html', 'text/javascript', 'application/x-javascript' ], 'localhostonly' => 1, 'timing' => 0, 'http_proxy_username' => '', 'timeout' => '600', 'filtering' => 1, 'first_time' => 0, 'debug' => 0, 'http_proxy_password' => '', 'logfile' => '/var/log/filterproxy/filterproxy.log', 'http_proxy' => '' }; $FilterProxy::Compress::CONFIG = { 'min_size' => 1024, 'order' => [ -10, 1, 9 ], 'mime_types' => [ 'text/html', 'text/plain', 'application/postscript', 'application/pdf', 'application/x-javascript' ], 'transfer_encoding' => 0 }; $FilterProxy::DeAnim::CONFIG = { 'order' => 4, 'mime_types' => [ 'image/gif' ] }; $FilterProxy::Header::CONFIG = { 'order' => [ -10, 10 ], 'mime_types' => [ '' ], 'dump_headers' => 0 }; $FilterProxy::ImageComp::CONFIG = { 'order' => 4, 'mime_types' => [ 'image/jpeg', 'image/jpg' ] }; $FilterProxy::Rewrite::CONFIG = { 'order' => 4, 'mime_types' => [ 'text/html', 'application/x-javascript' ] }; $FilterProxy::Skeleton::CONFIG = { 'order' => 4, 'mime_types' => [ 'text/html', 'text/plain' ] }; $FilterProxy::Source::CONFIG = { 'order' => [ -10, 10 ], 'mime_types' => [ '' ] }; $FilterProxy::XSLT::CONFIG = { 'order' => 6, 'mime_types' => [ 'text/html', 'text/xml' ] }; 1;