5

i wanted to Block URLs access from Browser in Android How i can do this without creating custom or own browser.

Nilesh
  • 167
  • 3
  • 15
  • 1
    Take if the url is equal or contains the url if you want block, he show a message of error ou something else – Woton Sampaio Apr 21 '18 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 . – ADM Apr 21 '18 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 Apr 22 '18 at 14:54
  • @Nilesh u got any update on this ? Were you able to achieve the results? – bhanu kaushik Sep 23 '19 at 11:53
  • @bhanu i found way with routing DNS table. – Nilesh Jan 04 '23 at 05:19

1 Answers1

2

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.

Semanticer
  • 1,962
  • 1
  • 18
  • 29