# Blocking sites based on their content

**URL:** <https://discourse.pi-hole.net/t/blocking-sites-based-on-their-content/81424>\
**Category:** Community How-to's\
**Created:** [July 27, 2025, 5:49pm UTC](https://discourse.pi-hole.net/t/blocking-sites-based-on-their-content/81424 "2025-07-27T17:49:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![GeorgeYes](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/g/f14d63/32.png) [@GeorgeYes](https://discourse.pi-hole.net/u/GeorgeYes)\
**Post date:** [July 27, 2025, 5:49pm UTC](https://discourse.pi-hole.net/t/blocking-sites-based-on-their-content/81424/1 "2025-07-27T17:49:17Z")

</div>

Hello,

I've been searching for a solution to block a certain webpages based on their content. The main goal is to block videos with so called 'brainrots' that pop-up on my child's screen. Youtube does not provide data about videos' titile within incoming request, so I would need to scrap the page's content. I could do that, but I need some kind of proxy. Since I found PiHole, I thought maybe I'll drop by and ask, if there is a possibility to do it in an easier way.

Thank you in advance!  
Best regards

---

<div class="post-metadata">

**Author:** ![rdwebdesign](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/rdwebdesign/32/51363_2.png) [@rdwebdesign](https://discourse.pi-hole.net/u/rdwebdesign)\
**Post date:** [July 27, 2025, 5:51pm UTC](https://discourse.pi-hole.net/t/blocking-sites-based-on-their-content/81424/2 "2025-07-27T17:51:23Z")

</div>

> [@GeorgeYes](#):
>
> I've been searching for a solution to block a certain webpages based on their content.

The keyword here is "content".

Content is seeing only by the **browser** , so you need to use a **browser extension** to block/filter content.

---

<div class="post-metadata">

**Author:** ![GeorgeYes](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/g/f14d63/32.png) [@GeorgeYes](https://discourse.pi-hole.net/u/GeorgeYes)\
**Post date:** [July 27, 2025, 6:03pm UTC](https://discourse.pi-hole.net/t/blocking-sites-based-on-their-content/81424/3 "2025-07-27T18:03:01Z")

</div>

> [@GeorgeYes](#):
>
> en searc

Thank you!

---

<div class="post-metadata">

**Author:** ![Ladrien](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/ladrien/32/39018_2.png) [@Ladrien](https://discourse.pi-hole.net/u/Ladrien)\
**Post date:** [July 28, 2025, 6:26pm UTC](https://discourse.pi-hole.net/t/blocking-sites-based-on-their-content/81424/4 "2025-07-28T18:26:00Z")

</div>

You'd need a proxy or enterprise-grade firewall to handle this kind of blocking. For home use, I'd try a proxy. Either of these two options, combined with DNS blocking are how schools implement content restrictions.

Using just a browser extension would not be ideal, as it can be disabled/uninstalled locally.
