How to block any website in Linux - Ubuntu LTS

You don't need any fancy application to block websites in your personal machine. Because, the technic we are going to deploy is supported by any operating system. I already demonstrated this using Windows 7 & 8 in my YouTube Channel.

STEPS:

  1. Open terminal by pressing Ctrl+Alt+T
  2. Type cd /etc and press enter key
  3. Now, type sudo gedit hosts
  4. Notepad will open, you need to add this line

127.0.0.1      <www.website.com>

Example:

127.0.0.1       www.google.com

Results:

  • Save the hosts file
  • Open your browser and type www.google.com
  • It should be blocked by now, if not, remove your cache by pressing Shift+Ctrl+R and check again.

Block websites in WINDOWS OS:

Tags:

how to block a website in linux using iptables, how to block website in linux mint, block website with etc/hosts, ubuntu block websites per user, block websites ubuntu, linux firewall block url, chomper linux, website blocker for linux,

Post a Comment

Feel free to ask your queries, happy to discuss with you.