-
Notifications
You must be signed in to change notification settings - Fork 84
Allow matching rules to HTTPS #43
Comments
Hmm, that's an interesting point, which deserve more thinking. I didn't build the infrastructure to support protocol when looking up hostnames from white and blacklist. Your particular example could be adressed using per-page permission:
Result: Another idea I had a while ago was to enforce the protocol of whatever the protocol of the top-page is (I don't see this requiring scary major change to the core of the code): If visiting What do you think? |
How does one access the 'per-page permission'? "If visiting https://github.com and github.com is whitelisted, block all requests from the page which are not https. That would be a switch of course." A switch for this is essentially what I would imagine to be the simplest solution. |
Well, in retrospect that's the default behavior. If a page is HTTPS and a third party is trying to load HTTP content on it, a 'shield' appears in the URL bar. This case is instead saying "If I whitelist HTTPS://github.com, the rules for https://github.com should not apply to http://github.com" not "If I whitelist HTTPS://github.com, do not allow non HTTPS content to load." |
Ok, in that case this is what the per-page permission currently does. It's the top-left icon in the popup menu. It allows to create permissions which apply only to pages starting exactly with Permissions specific to a page prefix will never apply globally, and vice versa. When a per-page scope is created/removed, it is automatically persisted, no padlock required. There is a visual cue when per-page permissions are in use: the top of the popup menu is blue, and so is the icon badge (that's the best I could come up with, I am no designer :-) |
Is there simply a way to make the default behavior site-specific permissions? |
In the current state of the code, that would be problematic, as when a I really need to think more about this. At some point I had the idea of also offering the padlock semantic for the |
That's fair. It's not really a big deal. For something like youtube, I would want it allowed on all pages because of embedded videos. But then for something like Facebook I really only want it to be allowed on https://facebook.com, and that seems to be the case more often than not for me. I use Google Plus for video chat, so I need to allow it, but I again use a per-site permission because I don't want Plus loading on every other site that it tries to load on. It's not critical. Right now I'm just clicking the button a lot, but that's hardly a big deal. |
Just to be sure we are talking about the same thing.. As it is now, |
Yep, I'm clear on that. |
Per-page doesn't exist, it's per-site or per-domain. How about HTTPS Everywhere? I tried to support scheme in scopes and this was just a mess, code and UI-wise. I don't plan to go back to that mess. |
Your own comment, @gorhill, mentiones per-page. Perhaps that's gone. HTTPS everywhere uses a predefined list of websites, which is dumb. |
Per-page was my mistake. Taking the scheme into account for scoping was a nightmare. If you had a per-scope switch to enforce |
Yes, that would solve it indeed. |
HTTPS-Everywhere already supports adding sites that aren't on its list, btw. |
Found this too: http://www.paulspoerry.com/2012/how-to-force-https-chrome/ Apparently you can force a website to always use HTTPS or nothing: |
This can be done within the browsers native controls, rather than an extension. Set it to block all cookies and then add the following rule in the exceptions. @gorhill I believe that interface is only for testing. It's quite tedious to use and won't persist across closing and opening the browser, (the last time I checked anyway). |
Both useful, but still not secure. They imply a manual check before going to each website. In that case I might as well check for protocol myself.
This is a great idea, thank you! This works. |
Nice elegant solution, and native in the browser. Thanks for the tip. |
Go to https://github.com (or any other https website)
Whitelist it.
Go to chrome://settings/contentExceptions#javascript
"github.com"
It should be "https://github.com".
This may be annoying so perhaps it would make sense to have matching be an option to be enabled by users?
Thanks.
The text was updated successfully, but these errors were encountered: