Quantcast
Channel: Active questions tagged 22.04 - Ask Ubuntu
Viewing all articles
Browse latest Browse all 4439

Is it possible to block ONLY the homepage of YouTube but not its videos using /etc/hosts?

$
0
0

Use Case: Block the homepage of YouTube (https://www.youtube.com) but not YouTube videos (https://www.youtube.com/watch?v=Y1lsbF9NWW0)

In order to block the YouTube homepage, I modified my /etc/hosts file with the following content:

127.0.0.1       localhost127.0.1.1       user-pc127.0.1.1       www.youtube.com

However, adding 127.0.1.1 www.youtube.com will disallow users from browsing the YouTube homepage along with anything else that starts with www.youtube.com.

Then how can I possibly modify this file so that it is only the homepage that will blocked and not the videos?


Viewing all articles
Browse latest Browse all 4439

Trending Articles