Make it easier to use a proxy for certain domains

Hello,

I use FoxyProxy to access scientific journals through my university's proxy. I don't want everything to go through the proxy, just those sites that require a subscription.

At the moment it's quite difficult to set up patterns that would match any subdomain for a domain. Please make it easier.

For example, I need all the following to go through the proxy:

http://nature.com/
http://www.nature.com/
http://blogs.nature.com/

It should work for https:// too.

But www.enature.com should not go through the proxy (so the suggestion of *domain.com is obviously a very bad one).

It should be possible to set up all this by just specifying nature.com. It should not be necessary to set up multiple patterns to make this work, or to write a convoluted regex that matches exactly what is needed (not more, not less).

Hi, Why doesn't the pattern

Hi,

Why doesn't the pattern *.nature.com/* work for you? That shouldn't match www.enature.com but should match all the others you listed. If I'm not understanding the problem, please help me to understand.

Thanks,
Eric

Hello Eric, Thanks for the

Hello Eric,

Thanks for the reply. The problem with the pattern *.nature.com/* is that it does not match http://nature.com/. (Well, http://nature.com/ redirects to http://www.nature.com/, but some other sites, like http://aip.org/, don't behave like this.) It also matches any URL that contains ".nature.com/", even if the domain is not nature.com. This is why the proxy sometimes gets activated (and asks for the password) when I use Google Image search, even though the thumbnails are hosted by Google.

Sz

hi why not try *enature.com*

hi why not try *enature.com*\

=( the down side is that it might also match (will it ? i am not sure)
xxx.xxx.xxx/stat.php?url=img.enture.com

is you log tab turned on, mine is & eric's pattern worked.

is you log tab turned on, mine is & eric's pattern worked. using
*://*.nature.com/*
Does the same job as his, while adding some extra typing
blacklisting http://www.enature.com/ woluld also keep out enature, but the whitelisted pattern never requests it.
(in a way www.example.com, www is a subdomain of example.com)
*.example.com/*
assumes that
http://www.example.com/blog/my-example-blogs-first-post.html
https://ssl.example.com/blog/my-example-blogs-first-post.html
http://www.example.com/store/my-example-biz.htm
all need to access the proxy.
when I tossed in
http://www.aip.org/
http://aip.org/
It still went through.
*.aip.org/*
but again adding *:// to the front
*://*.aip.org/*
does the same job with more characters.

He is right that

He is right that *.nature.com/* won't match http://nature.com/ unless http://nature.com/ happens to redirect to something that *does* match.

The point is well-taken and, in addition to the suggestion here, it's obvious that an easier way to proxy all subdomains and pages for a single domain is needed in FoxyProxy.

opps I did on typo on a pattern on that test.

opps I did on typo on a pattern on that test. I typed it as I mean it above, but it wouldn't work as I typed it.