Header filters: "! :" and "url: "
|
Jan. 22, 2009, 05:01 PM
Post: #1
|
|||
|
|||
Header filters: "! :" and "url: "
Hi all, i was doing some research with my header filters and didn't found any documentation here so these are the results i had:
Four filters, test them with the following link: http://addtolist//proxomitron//aa~reload~bbbb Code: [HTTP headers] Facts (correct me if something is wrong): -When a filter uses the "!:" format it needs the matching/replacing code to be written in the URL matching section. -When this code is written in the URL match it will need \w for setting the \2 variable or will ask us to confirm a lot of times. One time for every character in the address taken by \2. In some filters we wont notice it, so we wont't fix it and will consume more cpu than needed. -The order proxomitron follows for using filters, is the order followed in the config file, not in the Header filter window. -The only reason i know to use !: is to ordering the filters because "url:" will be ordered different, but we can use "url :" How proxomitron order the filters in the config file, not in the header filters window: [ 0-9:aAbBcC...xXyYzZ] How proxomitron order the filters in the header filters window: [ :0-9aAbBcC...xXyYzZ] Example of ordering in the config file: Code: [HTTP headers] More problems using the "!:" format: Does the command \k works in the url section? I cant get this filter to block http://rad.msn.com/ADSAdClient31.dll? You will see a blank page, but when it works you have to see "Connection killed" as title Code: [HTTP headers] How i order them without using an external text editor? I select all the header filters, export them to clipboard, delete all. At this point we want to paste all of them again, but proxomitron don't let us, so we create a new empty filter, now we import all the filters from clipboard, we delete the new empty filter, and save the config. We will see the URL filters at the end of the list, but we can see in the config file, they are the first filters proxomitrom parses Proxomitron will use the URL filters first as you can see by their order in the config file, but not as it is seen in the Header filters window. |
|||
Jan. 22, 2009, 06:18 PM
Post: #2
|
|||
|
|||
RE: Header filters: "! :" and "url: "
Here's what i seem to remember from our tests. Years ago, so...:
\k doesn't work in the URL Match. $RDIR works. \k is just a content-type dependent $RDIR. The header filter shoot order follows the config file (vs. Header window) sort order. With even a single "URL:" style header filter you'll never get a constant sort order. Latter will swap between two distinct states. Without any "URL:" style header filter, you'll get a constant config file sort order after hitting "Configure -> OK -> Save -> Reload" a couple of times. |
|||
Jan. 22, 2009, 06:27 PM
Post: #3
|
|||
|
|||
RE: Header filters: "! :" and "url: "
(Jan. 22, 2009 06:18 PM)sidki3003 Wrote: \k doesn't work in the URL Match. $RDIR works. \k is just a content-type dependent $RDIR.But this other is outgoing, so no content-type and it is working Sidki Code: [HTTP headers] sidki3003 Wrote:The header filter shoot order follows the config file (vs. Header window) sort order.Agree. But i don't use "URL:" instead i use "URL :x" and my config gets a constant sort order. Note the space before the ":x" |
|||
Jan. 22, 2009, 06:42 PM
Post: #4
|
|||
|
|||
RE: Header filters: "! :" and "url: "
(Jan. 22, 2009 06:27 PM)lnminente Wrote: But this other is outgoing, so no content-type and it is working Sidki That wasn't proper wording on my part. Better "expected content". text/* -> killed.html -- image/* -> killed.gif. I guess it looks at the extension. Quote:Agree. But i don't use "URL:" instead i use "URL :x" and my config gets a constant sort order. Note the space before the ":x" Well, if it works for you... |
|||
Jan. 22, 2009, 06:50 PM
Post: #5
|
|||
|
|||
RE: Header filters: "! :" and "url: "
Now i understand about content. By now it's working, i saved it some times and make comparisons with Notepad++. Thanks for your help Sidki!
Anyway i changed many filters to the "!:" format and i think i will left them as they are. Only documenting what i learned these days |
|||
Jan. 22, 2009, 07:27 PM
Post: #6
|
|||
|
|||
RE: Header filters: "! :" and "url: " | |||
Feb. 11, 2009, 03:57 PM
Post: #7
|
|||
|
|||
RE: Header filters: "! :" and "url: "
Quote:After investigating with header filters, i decided to use a special "URL:" title format: My header filters here |
|||
Jul. 12, 2009, 03:21 AM
Post: #8
|
|||
|
|||
RE: Header filters: "! :" and "url: "
(Jan. 22, 2009 06:18 PM)sidki3003 Wrote: The header filter shoot order follows the config file (vs. Header window) sort order. Since header filter order does matter, the below words in the official help file may need to be corrected. http://www.proxomitron.info/45/help/Web%...lters.html Wrote:With web page filters, order is important! This is not the case with HTTP header filters. |
|||
« Next Oldest | Next Newest »
|