The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniWeb > OmniWeb Feature Requests
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
Site-pref Proxy switching Thread Tools Search this Thread Display Modes
I am guessing this is super-low priority as the proxy server is probably chosen at a lower level, but I'd love the ability to specify certain sites to be routed through a proxy.

I have certain sites I'd like to have encrypted that aren't, and have an SSH tunnel I could put traffic through.
 
We use the system Proxy settings in the Network pane. Unfortunately it has limited customizability in what domains it affects.
 
I'd also love to see this feature implemented.
 
This can already be done by writing a proxy.pac file (which is actually written in javascript).

I'll offer up mine as an example, but lots of doco is available if you google... I've replaced stuff I don't want to share with XXX.

Code:
/**
 * On the 192.168.3.0 network, we need to use proxy 192.168.1.92:8080
 * to not get blocked by barracuda
 */
function FindProxyForURL(url, host)
{

    // if I can't resolve XXX, I'm probably at home. Return DIRECT.
    if (!isResolvable("XXX.XXX.edu.au")) {
        return "DIRECT";
    }
    
    // if the target is plain (no domain info), go DIRECT
    if (isPlainHostName(host) ||
        dnsDomainIs(host, ".stage") ||
        dnsDomainIs(host, ".test") ||
        dnsDomainIs(host, ".inside") ||
        dnsDomainIs(host, ".sydney") ||
        dnsDomainIs(host, ".XXX.edu.au") ||
        host == "127.0.0.1") {
        return "DIRECT";
    }

    
    // if the target host is within 192.168.0.0/16 or 203.2.XXX.0/24 return DIRECT
    if (isInNet(host, "192.168.0.0", "255.255.0.0") ||
        isInNet(host, "203.2.XXX.0", "255.255.255.0")){
        return "DIRECT";
    }

    // if we are getting something from theage.com.au, return the other proxy as .92 has issues
    if (dnsDomainIs(host, ".theage.com.au")) {
        return "PROXY 192.168.1.102:8080;DIRECT";
    }
    
    // otherwise return the proxy
    return "PROXY 192.168.1.92:8080;DIRECT";
    
}
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't sync via proxy coldrick OmniFocus for iPhone 9 2012-06-04 02:49 AM
Site Pref Button skellener OmniWeb Bug Reports 2 2008-03-19 10:30 AM
how to set a proxy? klassa OmniWeb Feature Requests 1 2007-04-04 11:15 AM
Cache as site pref Forrest OmniWeb Feature Requests 2 2006-04-21 11:06 PM


All times are GMT -8. The time now is 09:30 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.