Easy to block Facebook-Twitter or any website you like with just 1 line of code?

Views: 179Views: 180
Read Time:1 Minute, 33 Second

How about I block FacebookTwitter or any website you like with just one line of code?Let’s see how easy block website with a simple tricks.

Easy Block website For Windows 10 and Windows 8:
  1. Press the Windows key.
  2. Type Notepad in the search field.
  3. In the search results, right-click Notepad and select Run as administrator.
  4. From Notepad, open the following file: c:\Windows\System32\Drivers\etc\hosts
  5. Add 127.0.0.1 facebook.com www.facebook.com
  6. Click File > Save to save your changes.
block Facebook / Twitter or any website
block Facebook / Twitter or any website
For Linux and Mac:
  1. Open a Terminal window.
  2. Enter the following command to open the hosts file in a text editor: sudo nano /etc/hosts
  3. Enter your user password.
  4. Add 127.0.0.1 facebook.com www.facebook.com
  5. Press Control-X.
  6. When you are asked if you want to save your changes, enter y.
block Facebook / Twitter or any website
block Facebook / Twitter or any website
Now, clear your browser cache:
For Chrome
  1. On your computer, open Chrome.
  2. At the top right, click More .
  3. Click More tools Clear browsing data.
  4. At the top, choose a time range. To delete everything, select All time.
  5. Next to “Cookies and other site data” and “Cached images and files,” check the boxes.
  6. Click Clear data.
For Firefox
  1. Click the menu button and choose Preferences.
  2. Select the Privacy & Security panel.
  3. In the Cookies and Site Data section, click “Clear Data” With Cached Web Content check marked
*** Time for Magic ***
When you visit facebook. com, the website won’t load 🙂

 

Leave a Comment