# Device specific whitelist, block anything else

**URL:** <https://discourse.pi-hole.net/t/device-specific-whitelist-block-anything-else/62446>\
**Category:** Help\
**Tags:** v5-0, whitelisting\
**Created:** [April 15, 2023, 10:12am UTC](https://discourse.pi-hole.net/t/device-specific-whitelist-block-anything-else/62446 "2023-04-15T10:12:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![U5xdy](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/u/b5a626/32.png) [@U5xdy](https://discourse.pi-hole.net/u/U5xdy)\
**Post date:** [April 15, 2023, 10:12am UTC](https://discourse.pi-hole.net/t/device-specific-whitelist-block-anything-else/62446/1 "2023-04-15T10:12:12Z")

</div>

With the group management, I can setup lists for specific devices.

> [@Whitelisting for specific devices](https://discourse.pi-hole.net/t/whitelisting-for-specific-devices/23989):
>
> I've come across an issue when trying to use the CBS All Access app on my AppleTV. The app will not work with any sort of ad-blocker, including pi-hole. There is a reddit [thread](https://www.reddit.com/r/pihole/comments/au38by/cbs_all_access_not_working_with_pihole/) on what needs to be unblocked, but I don't want to open up my entire network to the domains. My other option is to turn off pi-hole when watching CBS All Access, which works, but it's a pain, and I don't want to have to intervene if family members want to watch. So, how can I just unblock the domains for my AppleTVs?…

Can I setup a device group which only can connect to defined records in the whitelist?  
Anything else should be blocked within the device group.

---

<div class="post-metadata">

**Author:** ![yubiuser](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/yubiuser/32/12100_2.png) [@yubiuser](https://discourse.pi-hole.net/u/yubiuser)\
**Post date:** [April 15, 2023, 12:49pm UTC](https://discourse.pi-hole.net/t/device-specific-whitelist-block-anything-else/62446/2 "2023-04-15T12:49:50Z")

</div>

> [@U5xdy](#):
>
> Can I setup a device group which only can connect to defined records in the whitelist?  
> Anything else should be blocked within the device group.

Sure. Create a new group, assign the desired clients to this group only, add a all blocking RegEx (`.*`) and add whitelisted entries as desired.

---

<div class="post-metadata">

**Author:** ![U5xdy](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/u/b5a626/32.png) [@U5xdy](https://discourse.pi-hole.net/u/U5xdy)\
**Post date:** [April 15, 2023, 1:27pm UTC](https://discourse.pi-hole.net/t/device-specific-whitelist-block-anything-else/62446/3 "2023-04-15T13:27:54Z")

</div>

ok, regex should be just `(.*)`?

I think it works, thanks.

---

<div class="post-metadata">

**Author:** ![chrislph](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/chrislph/32/32723_2.png) [@chrislph](https://discourse.pi-hole.net/u/chrislph)\
**Post date:** [April 15, 2023, 10:50pm UTC](https://discourse.pi-hole.net/t/device-specific-whitelist-block-anything-else/62446/4 "2023-04-15T22:50:16Z")

</div>

Without the brackets, although I think it would still happen to work with them. So just

```
.*

```

---

<div class="post-metadata">

**Author:** ![system](https://discourse.pi-hole.net/uploads/default/original/3X/7/c/7c8792f649eeb921c5d2b4c41564ffa873d9a2b8.png) [@system](https://discourse.pi-hole.net/u/system)\
**Post date:** [April 22, 2023, 10:51pm UTC](https://discourse.pi-hole.net/t/device-specific-whitelist-block-anything-else/62446/5 "2023-04-22T22:51:07Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
