Blocking FaceBook Using Localhost In Debian


Blocking facebook using localhost in Debian, is sometimes necessary for people to do their work instead of looking at social media.

As an example: Ministério da Saúde in Brazil, blocked access to Facebook, due to its employees spent more time online, than doing their work.

Some schools block Facebook and other social media sites, since they are not educational, but in fact a distraction.

However, just blocking the sites in the web browser isn't sufficient, to stop them from accessing these social media sites, therefore an admin, should block the sites in the localhost file and even the firewall.

Here are just a few reasons, why social media sites and gaming sites should be blocked.

  1. Nonwork/noneducational related issues.
  2. Educational related.
  3. Legal: Cyber-bully issues.
  4. Network traffic.
  5. Privacy issues.

Blocking facebook using localhost in Debian.

Open a terminal window and type the following:


Press Enter and enter password.

cd /

Press Enter,

gedit etc/hosts

Press Enter,

Copy and paste this into your localhost file and click save.

Games For Linux

Windows has always been the preferred platform for gaming, but after STEAM's interest in Linux more game developers are making their games natively available for Linux.


All information on this website is published in good faith and for general educational purposes and for use in safe testing environments only. While strives to make the information on this site as accurate as possible, does not warrant its completeness, reliability and accuracy.

We are not responsible for any losses or damages associated with the use of our website. While we strive to provide only links to useful websites, we have no control over the content of these sites and links to other sites do not constitute a recommendation for all content contained on these websites.


Site Information

This is a professional review site that receives compensation from the companies whose products reviewed. Each service or product are thoroughly tested and given high marks if considered to be the very best. Independently owned and the opinions expressed here are no one elses.


Limited Time Offers

Coming soon...