5

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

5
  • 1
    Take if the url is equal or contains the url if you want block, he show a message of error ou something else Commented 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 . Commented 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. Commented Apr 22, 2018 at 14:54
  • @Nilesh u got any update on this ? Were you able to achieve the results? Commented Sep 23, 2019 at 11:53
  • @bhanu i found way with routing DNS table. Commented Jan 4, 2023 at 5:19

1 Answer 1

3

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.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.