question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

More options for URL filtering/cleaning

See original GitHub issue

Hello. 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:closed
  • Created 6 years ago
  • Comments:28 (17 by maintainers)

github_iconTop GitHub Comments

1reaction
tumpiocommented, May 30, 2017

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.

0reactions
tumpiocommented, Jun 13, 2017

Nice! I didn’t even know that addon couldn’t process multiple rules.

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found