Books and toys for geeks and other kids (Amazon "top sellers")
O'Reilly
Linux
Unix shell
C / C++
Perl
PHP
Python
Java
JavaScript
TCP/IP
HTML
XML
.NET
PhotoShop
Dreamweaver
DirectX
Excel
Windows 2000
Windows XP
VBScript
MCSE
Security
Tops
BigRead
Dilbert
Far Side
Low Carb Diet
PDAs/Handhelds
Digital Cameras
Flash Sticks

Lowth.com Home | Protector Home | LinWiz Home | My Bookshelf | Topic Index | Changes | Search

Notes on editting the part_filter script (version 1.00.11)

The edits noted on this page are responses to a variety of requests I have had about how to change the reject/accept logic of the 1.00.x range of protector versions. They are not supported, mostly have not been tested, and are mostly a bad idea!

1. Relaxing the rules (allowing more file types through)

Please note: I do not recommend any of these changes since they can mean that .exe and other "bad" files can easily get through.

1.1 - To allow "tar" files through without checking (bad idea!)

Edit the "part_filter" file, and look for the text (at or near line 197)..

        application/tar |\ 
        application/x-tar)     unzip_using -f do_tar ;;
And change it to read..
        application/tar |\ 
        application/x-tar)     allow_unchanged ;;

1.2 - To allow "zip" files through without checking (bad idea!)

Edit the "part_filter" file, and look for the text (at or near line 193)..

         application/zip |\ 
         application/x-zip-compressed |\ 
         application/x-zip)     unzip_using -f do_unzip ;;
And change it to read..
         application/zip |\ 
         application/x-zip-compressed |\ 
         application/x-zip)     allow_unchanged ;;

1.3 - To allow "PDF" files through without checking (bad idea!)

WARNING: Please read this first before making the edit below.

Edit the "part_filter" file, and look for the following text (on or near line 233)

         text/*                                  |\ 
         image/*                                 |\ 
         audio/*                                 |\ 
         video/*                                 )
                   allow_unchanged ;;
And add an extra line, so that it now reads..
         application/pdf                         |\ 
         text/*                                  |\ 
         image/*                                 |\ 
         audio/*                                 |\ 
         video/*                                 )
                   allow_unchanged ;;

1.4 - To allow "MS Word" files through without checking (VERY bad idea!)

Please note that there is a very large number of word macro viruses "out there" in the wild. Making this change opens you up to all of them - so make sure that the workstations you used to read you mail with have up-to-date anti-virus software installed - including MS Office protection.

Edit the "part_filter" file, and look for the following text (on or near line 220).

         application/msword                     |\ 
         application/x-msword                   )
                   eval `$LIB_DIR/bin/check_msword $DECODED` ;;
And change it to read..
         application/msword                     |\ 
         application/x-msword                   )
                   allow_unchanged ;;

1.5 - To allow "MS Excel" files through without checking (VERY bad idea!)

Please note that there are quite a few Excel macro viruses "out there" in the wild. Making this change opens you up to all of them - so make sure that the workstations you used to read you mail with have up-to-date anti-virus software installed - including MS Office protection.

Edit the "part_filter" file, and look for the following text (on or near line 224).

         application/vnd.ms-excel                   )
                   eval `$LIB_DIR/bin/check_excel $DECODED` ;;
And change it to read..
         application/vnd.ms-excel                   )
                   allow_unchanged ;;


  All material on this page, and the "protector" software to which it relates is Copyright (C) 2002 by Lowth.com. "Protector" is free, open source software, licensed according to the terms of the GNU Public License