More options for URL filtering/cleaning
See original GitHub issueHello. I was looking for Clean Links replacement and found this great extension. But I think it can be improved in terms of link cleaning. A few suggestions:
- Global URL parameters filtering (for any url, even without rules). At the moment parameters are only removed from requests that match any “Filter” rule . I tried to add a global filter rule with
Pattern: Any URL
, but it doesn’t work; - Two global whitelists for hosts and paths or even better -> see the next paragraph;
- Ability to use multiple hosts and paths in rules. And instead of ‘Include subdomains’ checkbox, just use wildcard
*
. Often redirection/affiliate links use identical schemes (?r=, ?url=), so creating separate rules for each host is excessive. Also one could create a whitelist rule with multiple hosts - no need for a separate global whitelist; - Wildcard support for URL parameters (like
utm_*
,ref_*
). Not really necessary though.
Here is a concept: https://dl.dropboxusercontent.com/s/h131h58h6aoiqc4/requestcontrol2.png
Also a question. Which regex flavor is used in this extension? Javascript? I’m trying to create a redirection rule to get direct links to Dropbox, but I can’t get it to work. Here is the rule: {href/.*www\.dropbox\.com(\/s\/.+\/.+)\?dl=\d/https://dl.dropboxusercontent.com$1}
Test link: https://www.dropbox.com/s/h131h58h6aoiqc4/requestcontrol2.png?dl=0
– To do list for these:
- Fix url parameter filtering for global rules.
- Fix redirection url parsing from a query string (remove trailing query parameters).
- Change global url parameter trimming to Filter rule specific.
- Add a button to toggle redirection cleaning for “Filter” action.
- Add Wildcard support for URL parameters (like utm_, ref_).
- Use only * instead of ‘Include subdomains’ checkbox.
- Add support for including multiple match patterns for rules.
note the rules priority issue.
Issue Analytics
- State:
- Created 6 years ago
- Comments:28 (17 by maintainers)
Top Results From Across the Web
4 Ways to Improve Cybersecurity Posture with URL Filtering
URL filtering is a technique that improves web security while also increasing worker productivity. Filter allows organizations to ban specific ...
Read more >URL Filtering Best Practices - Palo Alto Networks
Use URL categories to phase-in decryption, and to exclude sensitive or personal information (like financial-services and health-and-medicine) from decryption.
Read more >Access Control Rules: URL Filtering - Configuration Guides
This feature is called URL filtering. There are two ways you can use access control to specify URLs you want to block (or,...
Read more >URL Filtering - TechDocs
Enable URL filtering in Symantec Protection Engine. xmlmodifier -s //filtering/URLFilter/@enabled <value> filtering.xml. Allowed values.
Read more >URL Filtering - Commscope Technical Content Portal
URL filtering allows administrators to manage internet usage by preventing access to inappropriate websites using a customizable combination ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ok, it’s here now: https://github.com/tumpio/requestcontrol/wiki/Testing-page-for-redirection-filtering
The wiki is public so you are able to edit it directly.
Yeah, I finally figured out how to work around the webRequest API limitation. It’s a big change in background but should not affect anything else.