kasketis / netfox

A lightweight, one line setup, iOS / OSX network debugging library! 🦊
MIT License
3.65k stars 368 forks source link

Preventing URL based on parts of URL #268

Open ansonngch-Sephora opened 3 months ago

ansonngch-Sephora commented 3 months ago

Is your feature request related to a problem? Please describe. https://github.com/kasketis/netfox#prevent-logging-for-specific-urls is an amazing feature that helped us block off specific URLs, but the URL need to be specific (https://xxx.com), I have some urls that are transformed and it's not possible to get the specific URL (https://{special_id}-xxx.com)

Describe the solution you'd like Is there any available method to ignoreURL based on parts of a URL?

patilvivekw commented 1 month ago

@ansonngch-Sephora - Please try the syntax below.

NFX.sharedInstance().ignoreURLsWithRegexes(["xxx", "XYZ"])

You can add multiple domains as well with this approach.