Post Reply 
Filtering a blank page
Jul. 21, 2009, 01:26 PM
Post: #1
Filtering a blank page
Hi,

Hope someone can help me out here. I need a filter to replace the contents of a completely blank webpage (no HTML markup) with some static text. I've tried using "\0" and "<start>" as the matching expression, but it did not work. As a kludgy alternative, I've setup an outgoing header filter with $RDIR that redirects to another webpage containing the static text. While this is an interim solution, I'm hoping for a webpage filter to accomplish the same task. Perhaps a matching rule that replaces irregardless of whatever content is on the page?

Thanks in advance!
Add Thank You Quote this message in a reply
Jul. 22, 2009, 02:03 AM
Post: #2
RE: Filtering a blank page
A test URL would help other people to help you.
Add Thank You Quote this message in a reply
Jul. 24, 2009, 06:23 PM (This post was last modified: Jul. 24, 2009 06:23 PM by JarC.)
Post: #3
RE: Filtering a blank page
If my guess is correct than all it takes is just loading a zero/one byte empty file...no test url required for that Smile!

try this.

[Patterns]
Name = "Fill Blank Page"
Active = TRUE
URL = "<page address or list>*"
Limit = 8
Match = "(^?)"
Replace = "Content$STOP()"
Add Thank You Quote this message in a reply
Post Reply 


Forum Jump: