How Can I completely block Internet to a device from Pi Hole

How Can I completely block Internet from Pi Hole via DNS to a specific device

1 Like

Block the root domain as a wildcard for that device only.

Make a new group in the Group Management tab, assign only that client to the new group, and assign the new blacklist entry only to that group.

2 Likes

Thanks For replying back can you please send the screenshot of block the root domain as a wildcard

Enter this as a regex domain blacklist entry:

(\.|^)\.$

1 Like

Thanks, but it did not work

Is there any thing else that I can do

I'm not good with regex,
but I think

\.

should suffice
or

.

but that last one just matches every character.

Dont give the device a gateway/default route.
Can do that via DHCP.

pi@ph5b:~ $ ip route show default
default via 10.0.0.1 dev eth0 src 10.0.0.4 metric 202

Thank you so much for your support. It finally worked!

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