Skip to content

Instantly share code, notes, and snippets.

@maiacodes
Last active March 25, 2022 04:17
Show Gist options
  • Save maiacodes/c56859c6598a5746a2067a64f81fcd8e to your computer and use it in GitHub Desktop.
Save maiacodes/c56859c6598a5746a2067a64f81fcd8e to your computer and use it in GitHub Desktop.
uBlock filter to block all Facebook services.
! Title: All Facebook Crap
||facebook.com
||facebook.net
||fbcdn.net
||fbcdn.com
||fb.com
||fbcdn-profile-a.akamaihd.net
||spot.im
!
! Cloudflare CDN access to FB
!
/cdn-cgi/pe/bag2?*connect.facebook.com
/cdn-cgi/pe/bag2?*connect.facebook.net
@maiacodes
Copy link
Author

maiacodes commented Sep 19, 2020

Do you hate Facebook as much as I do? If yes, then you'll love this uBlock filter which blocks all Facebook domains I know of. Not only will this block direct access to Facebook, but it'll also block 3rd-Party sites from using Facebook's services.

How to install

  1. Open uBlock settings
  2. Press the 'Filter Lists' tab
  3. At the bottom under 'Custom' press 'Import'
  4. Paste the raw URL to the Gist: https://gist.githubusercontent.com/maiacodes/c56859c6598a5746a2067a64f81fcd8e/raw/filters.txt
  5. Press 'Apply Changes' then 'Update Now'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment