The Un-Official Proxomitron Forum
Default filtering by Content-Type - Printable Version

+- The Un-Official Proxomitron Forum (https://www.prxbx.com/forums)
+-- Forum: Proxomitron Filters (/forumdisplay.php?fid=38)
+--- Forum: Filter Help/Request (/forumdisplay.php?fid=31)
+--- Thread: Default filtering by Content-Type (/showthread.php?tid=1320)



Default filtering by Content-Type - lnminente - Mar. 18, 2009 02:15 PM

Proxomitron's help Wrote:$FILTER(True or False boolean value)
Restrictions: Match or replace
Filter Types: IN or OUT header filters only

The $FILTER command can be used to force a particular request to be filtered or not filtered regardless of it's type. Normally only specific types are filtered (like text/html, text/css, image/gif, etc). $FILTER can be used in the match or replace of any header filter and takes a "true" or "false" value. If true, the request will be run through the web filters regardless of it's type. Beware this only makes sense for content that's text based.

So it seems our proxo is filtering by default image/gif. Do someone have documented all the document-types wich have filtering enabled by default starting from a blank config?


RE: Default filtering by Content-Type - sidki3003 - Mar. 18, 2009 06:52 PM

Standards:
text/html
multipart/x-mixed-replace
text/vbscript
application/x-javascript
text/javascript
text/css

Specials:
text/filterable -> Proxomitron proprietary content-type
image/gif -> only if "Freeze GIF animation" is checked in the main window


RE: Default filtering by Content-Type - lnminente - Mar. 18, 2009 08:45 PM

Superb! Lot of thanks Sidki [Image: happy0034.gif]
I wanted to know it to create a variable whose value is one when the content type is one of the indicated above Smile!
Code:
$TST(ContentType=(text/(html|vbscript|javascript|css|filterable)|multipart/x-mixed-replace|application/x-javascript)*) $SET(defaultFiltering=1)



RE: Default filtering by Content-Type - sidki3003 - Mar. 20, 2009 04:27 PM

N/P. Thanks for the link to the thumbs-up smiley. I was missing that one.