i wanted to Block URLs access from Browser in Android How i can do this without creating custom or own browser.
5
- 1Take if the url is equal or contains the url if you want block, he show a message of error ou something elseWoton Sampaio– Woton Sampaio2018-04-21 15:08:58 +00:00Commented Apr 21, 2018 at 15:08
- You want to control browser app ? Or You want to do this in your app . Question seems unclear . Please Edit it with proper details .SpiritCrusher– SpiritCrusher2018-04-21 15:57:05 +00:00Commented Apr 21, 2018 at 15:57
- if anyone tries to access that url from chrome or any other browser from my device , he should not able to access that or redirect to my specific URL .... like URL blocker.Nilesh– Nilesh2018-04-22 14:54:55 +00:00Commented Apr 22, 2018 at 14:54
- @Nilesh u got any update on this ? Were you able to achieve the results?bhanu kaushik– bhanu kaushik2019-09-23 11:53:11 +00:00Commented Sep 23, 2019 at 11:53
- @bhanu i found way with routing DNS table.Nilesh– Nilesh2023-01-04 05:19:15 +00:00Commented Jan 4, 2023 at 5:19
Add a comment |
1 Answer
You can do this using the AccessibilityService
Take a look at this answer https://stackoverflow.com/a/64481011/509681
Instead of opening a new browser tab, you could just display some blocking overlay UI.