Go Back   The macosxhints Forums > OS X Help Requests > Networking



Reply
 
Thread Tools Rate Thread Display Modes
Old 02-20-2003, 12:15 AM   #1
rkchang
Prospect
 
Join Date: Jan 2003
Location: Portland, OR
Posts: 15
question about web proxies

Is there a way to have your web proxy set according to what web site you're trying to access? For example, if I'm trying to search my school's library database, I want to use web proxy X, but if I'm trying to access my work's web database, I want to use web proxy Y. Also, if I'm accessing neither, I'd like to use neither proxy (so I'm not plagued by always having to enter a password each time I start up my web browser)? Thanks!

-Randy
__________________
"I have seen the evils of procrastination, and I vow to change my ways tomorrow."
rkchang is offline   Reply With Quote
Old 02-20-2003, 09:03 AM   #2
hayne
Site Admin
 
Join Date: Jan 2002
Location: Montreal
Posts: 32,445
Privoxy forwarding

Although I haven't tried this feature myself, it seems from the documentation that using Privoxy's forwarding could do this.
Privoxy is an open-source proxy that you can run on your own local machine. You can set up rules to do forwarding to other proxies depending on the URL.
Privoxy web site: http://www.privoxy.org/
hayne is online now   Reply With Quote
Old 02-20-2003, 06:57 PM   #3
nick2588
Triple-A Player
 
Join Date: Sep 2002
Posts: 99
Also

You can just create a single file called a PAC file. What it is is a text file that looks like if site("http://www.school.website/") proxy("http://www.school.proxy/"). I'm not sure of the exact syntax, sorry.

Found the specs:
http://wp.netscape.com/eng/mozilla/2...roxy-live.html
Quote:
In this example all the hosts in a given subnet are connected to using a proxy, all others are connected directly.
function FindProxyForURL(url, host)
{
if (isInNet(host, "198.95.0.0", "255.255.0.0"))
return "PROXY proxy.mydomain.com:8080";
else
return "DIRECT";
}


Last edited by nick2588; 02-20-2003 at 08:09 PM.
nick2588 is offline   Reply With Quote
Old 02-24-2003, 12:45 AM   #4
rkchang
Prospect
 
Join Date: Jan 2003
Location: Portland, OR
Posts: 15
Actually, my school did provide a script like this. Unfortunately, Mozilla is not my browser of choice. I'd like to be able to use a script like this along with Chimera or Safari. Is there a way to adapt this to work with other browsers?
__________________
"I have seen the evils of procrastination, and I vow to change my ways tomorrow."
rkchang is offline   Reply With Quote
Old 02-24-2003, 10:35 PM   #5
rkchang
Prospect
 
Join Date: Jan 2003
Location: Portland, OR
Posts: 15
It took me a while, but I finally got Privoxy running. I was confused when I followed the Privoxy manual and adapted a PAC file from my school for the forward instructions in the config file, and it didn't work. After sifting around a bit, I found out that Privoxy's default set-up doesn't set OS X to use it as its web proxy, so I went through System Preferences -> Network, and set the web proxy to 127.0.0.1:8118. Now I can search my school's library and my work's databases at my leisure. Triumph at last!
__________________
"I have seen the evils of procrastination, and I vow to change my ways tomorrow."
rkchang is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 07:24 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.