The Un-Official Proxomitron Forum
Filtering a blank page - 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: Filtering a blank page (/showthread.php?tid=1442)



Filtering a blank page - skridsko - Jul. 21, 2009 01:26 PM

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!


RE: Filtering a blank page - whenever - Jul. 22, 2009 02:03 AM

A test URL would help other people to help you.


RE: Filtering a blank page - JarC - Jul. 24, 2009 06:23 PM

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()"