Block Facebook Tracking Cookies with Pi-Hole 🌱

  1. Open a web browser and navigate to https://facebook.com
  2. Facebook will load normally
  3. Open a new tab and navigate to the Pi-Hole admin interface
  4. Click Login in the left navigation menu
  5. Login with the administrative password
  6. Click Blacklist in the left navigation menu
  7. Click the Regex filter tab at the top of the main content area
  8. Complete the Regex Filter form as follows:

    Regular Expression: (facebook|fb|fbcdn|fbsbx|tfbnw)\.(com|net)
    Comment: Facebook

  9. Click the Add to Blacklist button
  10. Open a new tab and navigate to https://facebook.com
  11. Pi-hole should now be blocking Facebook.com and many of the known domain names used by Facebook tracking cookies
  12. Back in the Pi-hole admin interface, click Query Log in the left navigation menu
  13. Facebook.com will be showing as Blocked (regex blacklist)