• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Help Is it possible to block specific links/URLs?

sparkhee93

Lurker
Feb 19, 2016
5
0
My situation calls for blocking specific links/URLs or even ones that contain that specific URLs but not necessarily the site's domain itself. For example, let's say I have an extreme phobia of ducks but my friends want to pull a prank on me and pull up a image search for ducks from Google on my phone.

But because I don't want to have to see any pictures or even searches of ducks, I want to restrict it.

I already know that changing the hosts file to redirect a specific website's domain back to 127.0.0.1 will cause the website to refuse the connection. But I still want to be able to use Google as my search engine so the rewriting hosts file is out of the option.

For example, when I search "ducks" on Google, I get these URLs:
Going from that, I want to restrict any URLs that contain either "https://www.google.com/search?q=ducks" and "https://www.google.com/#q=ducks".

Is this possible?

I have a rooted Samsung Galaxy Note 4 with CMRemix v7.2 if that information is going to make any difference.
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones