Socket
Book a DemoInstallSign in
Socket

faceblock

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

faceblock

A command-line tool for blocking Facebook access on your Mac.

1.1.3
latest
Source
npmnpm
Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

Faceblock - command-line tool to block Facebook

Regain focus by blocking Facebook and Youtube access from your local machine. This tool adds or removes Facebook & Youtube urls to your local hosts file to block access.

Installation & usage

npm i faceblock -g

Blocking access to Facebook & Youtube:

sudo faceblock on

Unblock access to Facebook & Youtube:

sudo faceblock off

Note that Sudo is required to write to your /etc/hosts file.

How it works

Faceblock rewrites all hostname lookups for a list of Facebook urls back to your own computer. The following list is added to your /etc/hosts file when turning it on:

127.0.0.1 www.facebook.com
127.0.0.1 facebook.com
127.0.0.1 static.ak.fbcdn.net
127.0.0.1 www.static.ak.fbcdn.net
127.0.0.1 login.facebook.com
127.0.0.1 www.login.facebook.com
127.0.0.1 fbcdn.net
127.0.0.1 www.fbcdn.net
127.0.0.1 fbcdn.com
127.0.0.1 www.fbcdn.com
127.0.0.1 static.ak.connect.facebook.com
127.0.0.1 www.static.ak.connect.facebook.com
127.0.0.1 youtube.com
127.0.0.1 www.youtube.com
127.0.0.1 play.google.com

Contribute

Feel free to submit PRs to this repo. Ideas for future improvements:

  • Add Twitter and other social media support
  • Non-OSX support?

License

MIT © @louwhopley

Keywords

facebook

FAQs

Package last updated on 02 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.