Cimbali / CleanLinks

Converts obfuscated/nested links to genuine clean links.
https://addons.mozilla.org/en-GB/firefox/addon/clean-links-webext/
Mozilla Public License 2.0
76 stars 2 forks source link

Add a Blacklist Mode #115

Open khabib227 opened 4 years ago

khabib227 commented 4 years ago

I want use CL in a specific PC in Blacklist Mode, I want keep all links in all sites without any processing or cleaning, keeping redirects n' other dirts, and processing links just in specific sites. @Cimbali you can please explain how do this setup right? Thanks so much.

khabib227 commented 4 years ago

Someone know how to setup CL in Blacklist mode?

Cimbali commented 4 years ago

Hi @khabib227, I’m afraid there is no blacklist mode in CleanLinks right now. It would be a lot of work to discover and maintain a ruleset of which redirects to skip, as opposed to which redirects to keep (i.e. the current or “whitelist” mode).

Cimbali commented 4 years ago

Also I think at this point whitelist rules have higher priorities than other rules, so you can’t even whitelist everything and then apply specific cleaning actions to specific URLs. On top of that, there are no “redirect to embedded URL” / “drop request with current URL embedded” actions in the rules, as those are the default actions at this time.

Cimbali commented 4 years ago

This is not a trivial task, but would allow for a less aggressive setup of CleanLinks.

In this “blacklist” mode, CleanLinks would skip redirect pages based on rules rather than automatically detected embedded links. This means less website breakage, but requires many more rules to be added to CleanLinks (any redirect really).

Cimbali commented 4 years ago

Alright, there now is a blacklist mode in master. However the only rule, so far, is the example from the onboarding page (https://track.me/?dest=).

Whenever we can add some decent defaults for redirects that are not detected automatically I’ll release this.

ghost commented 3 years ago

Is this feature yet released?

I would like to see a feature to be able to specify untrusted/blacklisted domains that will have all links cleaned including a possibility to define whitelisted/skipped parameters that are left in place. Now every domain needs to be defined separately.

khabib227 commented 2 years ago

Hi @Cimbali, is possible just add a new field which the user can put some sites and CL just work or process links if you is in one site of this list? For example:

www.bing.com/images/search?q= www.google.com

So, CL can work as today with all his features, just in this two sites, if I'm in an site out of the list, for instance "github.com" CL just don't work, just ignore and don't process anything, maybe you can just add a new setting to make CL disabled for all sites by default, so the user can enable it just on specific sites using the power button on panel, then this site go to the list as said above, if the user want can edit the urls and make it more specific to work just in a specific site url like the bing example above "/images/search?q=". Is just a suggestion, what you think about it? Seem be a much easy and simple way to implement it or not? Maybe don't need a big default list for blacklist mode, but is your decision, and anyway thanks so much the attention and all your work.

khabib227 commented 2 years ago

@Cimbali, sorry I'm not replied to this post before, but it was because of personal problems, thanks again.