uMatrix icon indicating copy to clipboard operation
uMatrix copied to clipboard

Block redirects and let user choose whether to proceed or not

Open luxoflux opened this issue 11 years ago • 12 comments

I'm copying issue #200 over from HTTPSB.

Basically, we need a way to intercept redirects, and have options to allow or deny, whitelist, blacklist, or what have you (up for discussion), with the ultimate aim of putting it under the user's control and consent.

“Ideally the extension should redirect to a blank page with a link and inform the user a page is trying to redirect.” [1]

luxoflux avatar Oct 27 '14 20:10 luxoflux

Right now, the ultimate aim seem's far away... The blank page has only one control : one close button... In fact, it will be nice to add some options (now). A (simple) way to disable uMatrix ? By a right click (on the uMatrix icon), the user will have the choice (one tab or fully ?). I assume, many users don't want to create a rule each time they met a redirect.

Otherwise, you could also think to add one feature like a redirect cleaner ? Maybe you could clean the redirect and provide a link ? And add this (clean) link inside the inform ?

WagnerGMD avatar Jul 16 '15 02:07 WagnerGMD

I suppose a toggle under 'strict https' would be nice addition since it's still bound by the scopes.

0xBRM avatar Jul 16 '15 18:07 0xBRM

Since the v0.19pre0, Policeman has introduced a way to handle a redirect. You should maybe take a look. Maybe you don't have any idea to add such feature ? From my point of view, it's a good way (or a source of inspiration).

WagnerGMD avatar Jul 24 '15 09:07 WagnerGMD

Maybe you don't have any idea to add such feature ?

Yes I have an idea, and no I do not need to look at anybody else's code.

gorhill avatar Jul 24 '15 11:07 gorhill

It seem's that you made a mistake. Because it's just a question and a suggestion (nothing else, nothing more). It's normal to ask a question or to try to understand.

WagnerGMD avatar Jul 28 '15 19:07 WagnerGMD

For references, RequestPolicyContinue support redirect blocking.

ldgbc avatar Sep 19 '15 12:09 ldgbc

Is there any progress on this? It's quite annoying that I have to create a new rule for these sites and/or disable uMatrix completely for these urls to work. I don't want to enable these sites forever, but when they're the 1st party/redirect host, they should get whitelisted or even better, an "allow once" button.

To test, just try any of the product links on this site: https://www.1dagskoopjes.nl/

They all result in the following for me:

This webpage is not available

ERR_ADDRESS_UNREACHABLE

wolph avatar Dec 29 '15 18:12 wolph

@WoLpH, RefControl does the job well. Will have to take a look at RequestPolicyContinued..

Edit: Woops. Totally different purpose ;p

polyzen avatar Dec 29 '15 21:12 polyzen

It seem uMatrix does support redirect control now but it require using Filter list rather than "on-the-fly" method.

For reference, @polyzen mention RefControl: Note that RefControl just allow you to modify URL header (which URL you click on to open this page) and is not relate to this issue.

ldgbc avatar Jan 03 '16 00:01 ldgbc

I just switched from RequestPolicy Continued, and I'm missing the ability to allow/block redirects. I'd love to see that added to uMatrix. Otherwise, uMatrix is great! The UI is well done. Thanks, folks.

RyanTG avatar Jan 31 '16 02:01 RyanTG

For those missing the ability to allow/block redirects, until/if this feature is added to uMatrix, I recommend NoRedirect ( https://addons.mozilla.org/en-US/firefox/addon/noredirect/ ). It's pretty straightforward. It applies rules from the top down. And you can use Regex if you want. From Options in Add-ons panel, add .* as "Source" as your bottom rule (this is a default deny), then add domains above it as "Allow" eg I have *arstechnica.com* and other news sites that redirect from an rss feeds in my RSS newsreader.

Thorin-Oakenpants avatar Jan 31 '16 08:01 Thorin-Oakenpants

There is also the extension Redirect Control (https://addons.mozilla.org/firefox/addon/redirect-control), which is very similar to the redirect feature in RequestPolicy (Continued). It works very good in combination with uMatrix for me.

Haven667 avatar Feb 02 '16 23:02 Haven667