Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Redirection blocking #115

Closed
kirill9000 opened this issue Jan 4, 2015 · 15 comments
Closed

Redirection blocking #115

kirill9000 opened this issue Jan 4, 2015 · 15 comments

Comments

@kirill9000
Copy link

Hello.
I'd like to thank you for your outstanding work. I switched from RequestPolicy to Policeman for it's feature-richness and much much more convenient interface. You have my deepest appreciation.

But I miss one feature from RequestPolicy - blocking of redirections from (and to) non-whitelisted domains. When user clicks link that attempts to redirect him, RP displays destination URL and asks user whether he wishes to follow. It's very useful against various link shortening services.

May I suggest that such feature should be incorporated into Policeman?

@bastik-1001
Copy link
Contributor

Indeed a very useful feature. It displayed an infobar on the top of the page, asking what to do.

Depending on how it is going to be implemented you may want to optionally allow http to https redirects for the same domain, despite the blocking state of the source. (e.g. http://www.example.org/ can redirect to https://www.example.org/ without Policeman interfering with it.)

Since RequestPolicy was able to either allow or reject any request, it was easy to tell what a non-white-listed domain actually is. With Policeman I can allow requests for images from github.com to imagehoster.net, but still not want to be redirected to it. Either this would mean redirects appear with their own category in the popup or that redirects are treated in a different way.

@futpib
Copy link
Owner

futpib commented Feb 2, 2015

522dd1c and some older commits address this issue

@futpib futpib closed this as completed Feb 2, 2015
@Halibut80
Copy link

@futpib Redirects blocking not work for me:
gif
From accounts.google.com to mail.google.com.

@futpib
Copy link
Owner

futpib commented Feb 2, 2015

@Halibut80 What's your about:policeman#rulesets-manager setup?

@Halibut80
Copy link

@futpib Oh, sorry, my fault.. I have enabled "allow same second level domain" ruleset.

@heforfree
Copy link
Contributor

just change that icon to policeman redirect icon
image1

also example i am on http://example.com/ then in searchbar i type something
and then press enter then notification ask me allow redirect from www.example.com to www.google.com
i can create rule page anydomain to google.com
but just it happen in clean profile?
and not happen on my default profile

@rezad1393
Copy link

can I disable this?

@heforfree
Copy link
Contributor

@rezad1393
no you can not,for now switch back to 0.18.1

@rezad1393
Copy link

please if you want to add this feature to stable release add an option to disable it too.

ty

I was gonna remove requestpolicy addon cause I don't want to have to use two addon but more importantly I don't like the redirect blocking always enabled.
is it not possible to have separately the ability to control page requests and the redirect of whole page?

@heforfree
Copy link
Contributor

i forgot to say but i think it possible with ruleset but i dont know how,sorry
there is one ruleset for samesite
https://github.com/futpib/policeman-rulesets/blob/master/general/allow_redirects_same_site.ruleset

@futpib
Copy link
Owner

futpib commented Apr 26, 2015

@rezad1393 You can disable it by adding "allow pages from any domain to any domain" rule.

@rezad1393
Copy link

pages?
is this the new added item in new non-stable version?

@rezad1393
Copy link

ty
it worked

@rezad1393
Copy link

oh
this is buggy.
sometimes this doesn't work.
it says blocked and the element is "others".
like when using duckduckgo web search redirect it sometimes doesn't work.
this is not always occurring and refreshing the pages works.

@Halibut80
Copy link

@rezad1393 This happens because #173

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants