You just saw how to configure a Pi-Hole on your network using a Raspberry Pi and an Ubiquiti EdgeRouter. The Pi-Hole will block advertisements and other potentially malicious addresses from your network by dropping DNS lookups that appear on the block-list that's part of the Pi-Hole.