Ignore/Block Specific URLs
Problem
Many apps (e.g., games with ads) trigger OS-level "Open with" popups for specific URLs (e.g., https:// links to Google Play, ad-tracker URLs). I want to block these links entirely without any popup appearing or unintended redirects even on URLCheck app. Currently, Android lacks a native solution for this, and workarounds (e.g., DNS filters, disabling app associations) are not a solution because DNS filtering disables ads which give in-game rewards entirely, I cannot get disabling direct Google Play Store link supporting work for some reason (only disabling whole Google Play Store as an app helped for many use cases using direct requests).
Proposed Solution
Add a feature to URLCheck that allows users to define a list of URLs or URL patterns to block. When a blocked URL is detected, URLCheck would:
- Intercept the link before the OS triggers the "Open with" dialog.
- Silently ignore the request or show a customizable (silent/not silent) notification (e.g., "Blocked: [URL]").
Implementation Ideas
- Blocklist Configuration:
- Let users add URLs, domains, or regex patterns to a blocklist (e.g.,
*.ads.com,market://*,id=some.shittypackage.com). - Support wildcards (
*) and regex for flexible filtering (e.g.,*://play.google.com/store/apps/details?id=*).
- Let users add URLs, domains, or regex patterns to a blocklist (e.g.,
- User Interface:
- Simple UI to manage blocked URLs (add/remove entries, import/export lists).
- Toggle to enable/disable blocking globally.
Use Cases
- Block intrusive ads in games that try to open Google Play or other app stores.
Why URLCheck?
This tool already gives popups for just https://play.google.com links and focuses on URL inspection and handling, making it ideal to extend into proactive URL blocking.