Post Reply 
Force proxy for select sites
Apr. 12, 2011, 05:52 AM (This post was last modified: Apr. 12, 2011 06:26 AM by sh8an.)
Post: #5
RE: Force proxy for select sites
Thanks a lot! it's alive Smile!. in order to be make it look more like original and a bit more consistent with the design changed slightly
Code:
[HTTP headers]
In = FALSE
Out = TRUE
Key = "! * 4 Scan Additional User Lists - Append to Keywords (Out) {sh8an}"
URL = "(^$TST(keyword=*.s_ptron.*))$LST(ForceProxy)$SET(keyword=$GET(keyword)\0)"

In = TRUE
Out = FALSE
Key = "Location: 5 Route forced redirects through proxy (In) {sh8an}"
URL = "(^local.ptron/|$TST(keyword=*.i_proxy:2.*))"
Match = "*forced_redirect.com/$ADDLST(ForceProxy,\(\[\^/\]\+\+.\|\)$GET(uDom)/\t\t\t\t\$SET\(0=i_proxy:2.\))$LOG(RADD: \(\[\^/\]\+\+.\|\)$GET(uDom)/ to list)"
Replace = "$JUMP(\u)"

one could probably redo the second filter with checks for $RESP and $IHDR somewhere above, but it does the trick for me for now.
thanks again for help

Update:
In order to keep track of what's happening changed $LOG() to ($TST(volat=*.log:[12]*)$ADDLST(Log-Rare,HDR ForceProxy\tADD: \(\[\^/\]\+\+.\|\)$GET(uDom)/ \t\u)|)
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
Force proxy for select sites - sh8an - Apr. 10, 2011, 04:56 PM
RE: Force proxy for select sites - JJoe - Apr. 10, 2011, 06:05 PM
RE: Force proxy for select sites - sh8an - Apr. 11, 2011, 06:12 AM
RE: Force proxy for select sites - JJoe - Apr. 12, 2011, 02:56 AM
RE: Force proxy for select sites - sh8an - Apr. 12, 2011 05:52 AM

Forum Jump: