Post Reply 
Problem with "\h"
Jul. 29, 2004, 08:18 PM
Post: #9
 
I tried writing a referer filter to deal with the problem of \h not working on hostnames ending with country codes. It doesn't work. What am I doing wrong?
Code:
[HTTP headers]
In = FALSE
Out = TRUE
Key = "Referer: Hide previous host v2 (out)"
Match = "((*|)(http(s|)://)\0\1/*)($OHDR(Host:\s\2))(^$TST(\1=\2))"
Replace = "\0\2"

This does not work either. Why??
Code:
In = FALSE
Out = TRUE
Key = "Referer: Hide previous host v2 (out)"
Match = "?&(($OHDR(Host:\s\1))&((*|)(http(s|)://)\0$TST(^\1*)))"
Replace = "\0\1"

This resulted in a referer whose label is there, but nothing is visible after it.
Code:
In = FALSE
Out = TRUE
Key = "Referer: Hide previous host v2 (out)"
Match = "?&(^($OHDR(Host:\s\1))&((*|)(http(s|)://)\0$TST(\1*)))"
Replace = "\0\1"

This removes the referer whether the host names are the same or not.
Code:
In = FALSE
Out = TRUE
Key = "Referer: Hide previous host v2 (out)"
Match = "?&($URL((http(s|)://)\0\1/*))&(^($OHDR(Host:\s$TST(\1))))"
How do you make a match work only if a test fails? Obviously, I haven't understood how to do that.
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
[] - z12 - Jul. 29, 2004, 12:58 AM
[] - ProxRocks - Jul. 29, 2004, 02:33 AM
[] - z12 - Jul. 29, 2004, 03:32 AM
[] - Siamesecat - Jul. 29, 2004, 07:31 AM
[] - ProxRocks - Jul. 29, 2004, 11:27 AM
[] - z12 - Jul. 29, 2004, 01:54 PM
[] - sidki3003 - Jul. 29, 2004, 02:32 PM
[] - ProxRocks - Jul. 29, 2004, 03:59 PM
[] - Siamesecat - Jul. 29, 2004 08:18 PM
[] - z12 - Jul. 30, 2004, 02:26 AM
[] - Siamesecat - Jul. 30, 2004, 08:23 AM
[] - sidki3003 - Jul. 30, 2004, 10:57 AM
[] - z12 - Jul. 30, 2004, 11:16 AM
[] - z12 - Jul. 30, 2004, 11:39 AM
[] - z12 - Jul. 30, 2004, 01:36 PM
[] - ProxRocks - Jul. 30, 2004, 03:43 PM
[] - Oddysey - Jul. 30, 2004, 04:49 PM
[] - z12 - Jul. 30, 2004, 06:45 PM
[] - z12 - Jul. 30, 2004, 06:48 PM
[] - sidki3003 - Jul. 30, 2004, 07:41 PM
[] - sidki3003 - Jul. 30, 2004, 07:49 PM
[] - sidki3003 - Jul. 30, 2004, 08:22 PM
[] - ProxRocks - Jul. 30, 2004, 08:23 PM
[] - Oddysey - Jul. 30, 2004, 10:33 PM
[] - z12 - Jul. 30, 2004, 11:33 PM
[] - Siamesecat - Jul. 30, 2004, 11:56 PM
[] - sidki3003 - Jul. 31, 2004, 05:14 PM

Forum Jump: