Closed Bug 143643 Opened 22 years ago Closed 22 years ago

"No proxy for" feature should be improved

Categories

(Core :: Networking, defect)

defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 127396

People

(Reporter: calvin.liu, Unassigned)

Details

From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.0rc1) Gecko/20020418 Actually, I think this is an RFE. Although mozilla offers "no proxy for" feature, I think it's still a little bit stupid. ;) Here is an example. Suppose you want to disable proxy for a server which domain name is a.b.c.d, then you must add all the proper combination in the list, e.g. a,a.b,a.b.c,a.b.c.d. Compare to IE, I prefer to IE's "no proxy for" feature. It resolves the domain name first and then determine if it's necessary to bypass the proxy settings. Also, IE supports wildcat, something like 192.168.*. That's convinient. Reproducible: Always Steps to Reproduce: 1. 2. 3.
I don't understand what you mean. To block the domain "mozilla.org", put in ".mozilla.org" As for the IP address matching, we have individual bugs on most of these items. In fact, IE's use of wildcards is neat, but not really useful, since most people don't "break on the bytes" with a subnetmask. The RFE for net/subnetmask notation is what is really needed.
I really need a way to specificy that only a given domain should be proxied. I SSH port-forward a proxy server at the company I work for, and it would be very handy if I could say: Proxy only: company.com Or alternatively No proxy for: !company.com ( or ~company.com )
What about using automatic proxy config file and javascript. This give you the option todo just about anything you can think of. Here are two simple samples that provide you with what you want. function FindProxyForURL(url, host) { if (dnsDomainIs(host, ".company.org")) return "PROXY proxy.company.com:8080"; else return "DIRECT"; } OR function FindProxyForURL(url, host) { if (!dnsDomainIs(host, ".company.org")) return "DIRECT"; else return "PROXY proxy.company.com:8080"; }
Calvin: please try the solution I provided and comment here. Dan: please file an RFE for the syntax change you would want.
Benjamin, I've tried your solution and it works in some situation. But I think it hasn't solve my problem. For example, my machine is a.b.c.d, my colleague's machine is z.b.c.d, and I want to visit a website on his machine by visiting "http://z". But if I apply ".b.c.d" to "No proxy for" and try "http://z", mozilla will return "Proxy Error". I think it's because no string ".b.c.d" in my url so mozilla tries to use proxy.
We have a bug on this, but I couldn't find it in my first search, but Bug 127396 also laments this behavior.
Okay. Here's the story: This bug needs to go somewhere. If there is ONE problem you really dislike, summarize it here, and I'll dupe it. If you are frustrated w/ everything, dupe to the meta bug and go to the individual bugs and VOTE (don't file dupe buges for each bug you want fixed, that's not the correct way to vote).
Whiteboard: dupeme
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
OK, I read 127396 and found a meta bug 61691. Mark dup and add dependence. *** This bug has been marked as a duplicate of 127396 ***
V/dupe.
Status: RESOLVED → VERIFIED
Whiteboard: dupeme
You need to log in before you can comment on or make changes to this bug.