url prefix matching
There appears to be some kind of wildcard logic which is not described in your tips, because
pluckui add "Allow rubygems"
enabled a bunch of urls like "rubygems.foo.bar.blah.whatever" - it would be nice to have a tip in your documentation on how this works.
What didn't work as expected was:
pluckui add "Allow flickr.com/photos/avondalebiblechurch"
I don't need all of flickr, but I'd like to whitelist just that part of flickr. This doesn't seem possible currently.
The suggestion from Vitaut has been relocated to http://pluckeye.uservoice.com/forums/137031-general/suggestions/10726221-allow-based-on-file-extension .
Vitaŭt Bajaryn commented
A similar feature would be useful for me - filtering by file extension or filetype.
Often, files with types such as tar.* and patch are reported as application/octet-stream. So I'd like to allow *.patch or *.tar* (or something similar with pluckeye looking at magic numbers in the response contents) while denying the rest of octet-stream.
You can thank God for this one because it's not by intention; it's a bug. But, I'm glad the unintended feature is useful to you. Remarkable!
The standard way to do what you want is:
$ pluckui add 'Allow rubygems.org'
$ pluckui add 'Allow rubygems.global.ssl.fastly.net'
J.R. Willett commented
Thanks. Here's an example of the undocumented wildcard behavior that currently appears to exist:
$ pluckui export | grep ruby
$ bundle install
Fetching gem metadata from https://rubygems.org/.......
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Gem::RemoteFetcher::FetchError: Errno::EACCES: Permission denied - connect(2) for "rubygems.global.ssl.fastly.net" port 443 (https://rubygems.org/gems/ruby-prof-0.15.8.gem)
An error occurred while installing ruby-prof (0.15.8), and Bundler cannot continue.
Make sure that `gem install ruby-prof -v '0.15.8'` succeeds before bundling.
$ pluckui add "Allow rubygems"
$ bundle install
Bundle complete! 54 Gemfile dependencies, 159 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
$ pluckui add "Allow mozilla.org"
will whitelist mozilla.org and any subdomains. E.g. http://developer.mozilla.org/
Wildcards in urls are a different beast, and support for them are not yet implemented. If you would like pattern matching in URLs, do mention a specific scenario, such as that provided by J.R. (i.e., flickr.com/photos/avondalebiblechurch ).