Post Reply 
Force proxy for select sites
Apr. 10, 2011, 06:05 PM (This post was last modified: Apr. 10, 2011 07:03 PM by JJoe.)
Post: #2
RE: Force proxy for select sites
(Apr. 10, 2011 04:56 PM)sh8an Wrote:  1. Force proxy
having problems with keyword. when i do just $SET(keyword=i_proxy:2.) proxy is not activated, with a jump i end up in a loop.

IIRC, a $JUMP() starts a new connection and thus clears all variables. So the "$SET(keyword=i_proxy:2.)" in your filter's replace can't do anything.

(Apr. 10, 2011 04:56 PM)sh8an Wrote:  2. Autofill redirect list filter
What is the easy way of getting the TLD from \h? the way it is right now http://www.somesite.com/ gets inserted. i would like to have it ([^/]++.|)somesite.com/

Not easy to always be correct but sidki does provide the "uDom" variable, http://sidki.proxfilter.net/prox/sidki-e...l_Vars.txt .

Quote:uDom Domain (e.g. domain.com or domain.co.uk)

(Apr. 10, 2011 04:56 PM)sh8an Wrote:  The overall logic is as follows. there is a transparent proxy down the line which redirects with 302 on some specific sites. when this happens i want proxo to spot the redirect, add the TLD of the denied site to ForceProxy list (in order to use external proxy straight away in the future), and jump to URL using proxy.
would appreciate any suggestions.

Hmmm...
1. Catch the redirect with header filter, add the URL match AND the i_proxy:2 command to to ForceProxy. Probably like (I'm not sure what needs to be escaped)

Code:
$ADDLST(ForceProxy, \([^/]++.|\)\1 \& \$SET\(keyword=\$GET\(keyword\).i_proxy:2.\))

and then $JUMP()
2. Catch the request with header filter, call ForceProxy. $JUMP() not needed here.

Not tested

Edit: somesite.com/ to \1
Edit: spelling and clarity, I hope.
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: