# How to block porn and hentai easily

**URL:** https://discourse.pi-hole.net/t/how-to-block-porn-and-hentai-easily/80575
**Category:** Customizing Pi-hole
**Created:** [June 11, 2025, 4:50pm UTC](https://discourse.pi-hole.net/t/how-to-block-porn-and-hentai-easily/80575 "2025-06-11T16:50:03Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Patrik\_Martins](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/patrik_martins/32/50218_2.png) [@Patrik\_Martins](https://discourse.pi-hole.net/u/Patrik_Martins)
#### Post date: [June 11, 2025, 4:50pm UTC](https://discourse.pi-hole.net/t/how-to-block-porn-and-hentai-easily/80575/1 "2025-06-11T16:50:03Z")

</div>

So, I was setting up my pihole and blocking certain sites, I figured out a simple way to do it and I'd like to share it:

First, I added this list to my blocked group: [GitHub - paulbrandie/Pi-Hole-Porn-Blocking: List of porn sites that can be read by Pi-Hole.](https://github.com/paulbrandie/Pi-Hole-Porn-Blocking)

Then, in DOMAINS \>\> regex filter , I created two rules: ^hentai and hentai$ , basically, "^hentai" blocks any site that has any character before 'h', and "hentai$" blocks any site that has any character after 'i', so any site with that word is blocked, adding of course with the txt I added

---

<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: [June 11, 2025, 4:54pm UTC](https://discourse.pi-hole.net/t/how-to-block-porn-and-hentai-easily/80575/2 "2025-06-11T16:54:31Z")

</div>

Your regex rules are wrong.

- `^hentai` will block domains **starting** with "hentai" (`hentai.domain.com`).
- `hentai$` will block domains **ending** with "hentai" (`www.domain.hentai`... _I doubt this will ever match something_).

Your rules will never block domains with hentai in the middle (`www.hentai.com` won't be blocked).

You only need one regex rule: `hentai`. This will match any domain containing the string "hentai", no matter the position.

---

<div class="post-metadata">

### Author: ![buntspexxt](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/b/e9bcb4/32.png) [@buntspexxt](https://discourse.pi-hole.net/u/buntspexxt)
#### Post date: [June 11, 2025, 5:03pm UTC](https://discourse.pi-hole.net/t/how-to-block-porn-and-hentai-easily/80575/3 "2025-06-11T17:03:52Z")

</div>

Apart from the wrong regex, i doubt that each and every hentai site has hentai in the domain name.

---

<div class="post-metadata">

### Author: ![Bikram\_Ghosh](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/bikram_ghosh/32/49779_2.png) [@Bikram\_Ghosh](https://discourse.pi-hole.net/u/Bikram_Ghosh)
#### Post date: [June 11, 2025, 7:13pm UTC](https://discourse.pi-hole.net/t/how-to-block-porn-and-hentai-easily/80575/4 "2025-06-11T19:13:14Z")

</div>

I use this block list for all kinds of nsfw stuff [https://raw.githubusercontent.com/hagezi/dns-blocklists/main/adblock/nsfw.txt](https://raw.githubusercontent.com/hagezi/dns-blocklists/main/adblock/nsfw.txt)

---

<div class="post-metadata">

### Author: ![Redback](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/redback/32/31264_2.png) [@Redback](https://discourse.pi-hole.net/u/Redback)
#### Post date: [June 14, 2025, 8:41pm UTC](https://discourse.pi-hole.net/t/how-to-block-porn-and-hentai-easily/80575/5 "2025-06-14T20:41:44Z")

</div>

I have some regex filters you can try out and expand on, hope this helps. Add as denied in the RegEx filter tab.

^(._[.-]+)?([a-z0-9]+)?onlyfans([0-9a-zA-Z]+)?([.-].+)$  
Blocks 1000  
^(._[_.-]+)?([a-z0-9]+)?hentai([0-9a-zA-Z]+)?([_.-].+)$  
Blocks 10,000  
^(._[.-]+)?([a-z0-9]+)?porn([0-9a-zA-Z]+)?([.-].+)$  
Blocks 126,000  
^(._[_.-]+)?([a-z0-9]+)?slut([0-9a-zA-Z]+)?([_.-].+)$  
Blocks 7000

---

<div class="post-metadata">

### Author: ![Glitch01](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/g/a8b319/32.png) [@Glitch01](https://discourse.pi-hole.net/u/Glitch01)
#### Post date: [September 19, 2025, 7:04pm UTC](https://discourse.pi-hole.net/t/how-to-block-porn-and-hentai-easily/80575/6 "2025-09-19T19:04:45Z")

</div>

Thanks for the share. It blocked some of the stuff my original list didn’t cover.
