I use the command like this in /etc/squid/squid.conf
Code:
acl ban_sites dstdomain .facebook.com .youtube.com .othersite.com
http_access deny ban_sites
(I'm sorry if I used the bad site. I have to make this work because kids in school open 18+ adult websites on computers... )
Moderator Edit: No big deal, however it was not necessary to include it either. You want to block certain sites, that's all that's needed.
I've renamed the site name.
I have tried this as well
Code:
sudo touch /etc/squid/blacklist.txt
sudo nano /etc/squid/blacklist.txt
.youtube.com
.othersite.com
.facebook.com
sudo nano /etc/squid/blacklist.txt
acl banned dstdomain "/etc/squid/blacklist.txt"
http_access deny banned
sudo service squid restart
and after that, it just won't block it
.
Do I miss something? I have been searching and searching for solutions online but none of the solutions have worked for me :/
I have tried this as well:
Code:
acl proxy_ip src 192.168.11.56 #proxy_ip
http_access allow proxy_ip
http_access deny CONNECT banned
Then I put that 192.168.11.56 under firefox -> edit -> preferences -> advanced -> network -> proxy -> manual proxy (192.168.11.56)
Restarted firefox and tried to open facebook and it went through..
I don't know what's wrong
.
I know that IPTables will do the job but I don't want to go there yet.
If there absolutely is no way to block HTTPS by just squid proxy then idk :O. I'll listen to any of you
Help me out please :3. Thanks!!