Post Reply 
Filtering a non html page
Jan. 25, 2009, 02:25 PM (This post was last modified: Jan. 25, 2009 02:43 PM by Clooless.)
Post: #1
Filtering a non html page
I'm sure I'm being stupid but here goes.

I'm trying to filter an entire server using a Web Page filter as follows

Name = "Text Replacement"
Active = TRUE
Multi = TRUE
url = "([^/]++.|)target.com/"
Limit = 256
Match = "the"
Replace = "t3h"

This works fine for *.domain.com

but http://www.domain.com/function.php?s=12345 just returns a simple text page with no html at all which does not seem to be processed at all.

How would I catch that?

Many thanks
Just a quick update, changing the text replace filter to global (i.e removing URL matching) still results in no filter being applied.

If that helps at all.

PS. Sorry if this is in the wrong forum, I have PM'd an admin to move it if necessary. edit by admin: moved... Smile!
Add Thank You Quote this message in a reply
Jan. 25, 2009, 02:44 PM
Post: #2
RE: Filtering a non html page
Proxomitron doesn't filter plain text by default. You can use $FILTER() command to override that.
Add Thank You Quote this message in a reply
Jan. 25, 2009, 02:50 PM
Post: #3
RE: Filtering a non html page
(Jan. 25, 2009 02:44 PM)whenever Wrote:  Proxomitron doesn't filter plain text by default. You can use $FILTER() command to override that.

Thank you for such a quick reply. I'll look into that now - if you have any good (read : idiot-proof Wink) guides on how to do it properly, links would be much appreciated.

Kind Regards
Add Thank You Quote this message in a reply
Jan. 26, 2009, 03:34 AM
Post: #4
RE: Filtering a non html page
There is a topic about filtering xml, which you can look in.
Add Thank You Quote this message in a reply
Jan. 27, 2009, 06:05 AM
Post: #5
RE: Filtering a non html page
I have a header filter which forces filtering of non-html based on extension name:
Code:
In = TRUE
Out = FALSE
Key = "Content-Type: Filter .js/.vbs/.xml/.xsl/.xhtml (in)"
URL = "*.(php|js|jse|vbs|vbe|x(htm||m|s)l)"
Match = "\0"
Replace = "\0$FILTER(True)"
Perhaps you can adapt that to your requirements.
Add Thank You Quote this message in a reply
Jan. 27, 2009, 09:41 AM
Post: #6
RE: Filtering a non html page
(Jan. 27, 2009 06:05 AM)Siamesecat Wrote:  I have a header filter which forces filtering of non-html based on extension name:
Code:
In = TRUE
Out = FALSE
Key = "Content-Type: Filter .js/.vbs/.xml/.xsl/.xhtml (in)"
URL = "*.(php|js|jse|vbs|vbe|x(htm||m|s)l)"
Match = "\0"
Replace = "\0$FILTER(True)"
Perhaps you can adapt that to your requirements.

Works like a charm - and much more elegant than my kludge!

Thanks guys for all your help (or gals Wink)
Add Thank You Quote this message in a reply
Post Reply 


Forum Jump: