
click to enlarge
This is where things get a little bit more fun. You can filter traffic through a proxy which can block websites from a file; it can even do it at a certain time and for certain users of the computer (or network). Squid is a very flexible proxy server but takes a little bit of set up to begin with. Run the following command in your terminal: "sudo apt-get install squid3"
Now you need to use your favorite text editor to delete everything in /etc/squid3/squid.conf and replace it with this text. Then run the following in the terminal: sudo touch /etc/squid3/squid-block.acl
Once you have done that, go into Firefox and change the proxy settings from the toolbar by clicking Edit -> Preferences -> Advance -> Network -> Settings. Now that you have the window open, click "Manual Proxy Settings", put into the HTTP proxy field "localhost" and port 8080, check the box saying "Apply to all protocols" and finally click ok.
You can now block websites by editing /etc/squid3/squid-block.acl and putting in your websites. For example: ".example.com" will block example.com and any subdomains. You can also block keywords such as "social" or "proxy" which will block any URL with those words, but this will not work until we stop the bypass as described below.