I have installed elinks and squid and I need to restrict access to yahoo.com(including subdomains. for example, fr.yahoo.com). How do I permanently configure elinks(or squid) to forbid access to yahoo.com?
First create a file name
After that Put this configuration line under
I assume you put acl.txt under /etc/squid/
By this lines we allow all requests from any ip that belong to network 192.168.1.0 with mask 255.255.255.0 except requests that have a destination domain contains is file /etc/squid/acl.txt.
Check Squid Configuration Basics For more knowledge :)