Articles

Block domains on Linux

In howto on Jun 5, 2016 by theoryl Tagged: ,

It’s easy to block specific domains on Linux. Just open /etc/hosts and append the following lines:

127.0.0.1       facebook.com
127.0.0.1       www.facebook.com

(replace facebook.com by the domain name you wish to block)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: