|
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 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 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. 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. |
|||
|
« Next Oldest | Next Newest »
|
| 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
|

Search
Member List
Calendar
Help





![[-]](images/ONi/collapse.gif)