how to deny block https sites for some users
in squid, how to block some https sites for some users?
ie. I want to deny https://www.google.com and https://www.xyz.com for 192.168.1.6-16 please help thanks & regards |
Hi, I also use squid.
ref. Restricting Access to specific Web sites Quote:
If you don't want to restrict the times, leave out that line... eg. "acl business_hours time M T W H F 9:00-17:00" These files may contain....another example from linuxhomenetworking Quote:
http://www.visolve.com/squid/squid30/contents.php for a range of addresses, try this synopsis instead of the example... Quote:
Read these sites for more info. Hope this helps you, cheers Glenn |
Quote:
Code:
acl clients src 192.168.1.6-192.168.1.16 Code:
acl clients src 192.168.1.6-192.168.1.16 |
but how to put the https site list into file?
|
Quote:
Code:
acl clients src 192.168.1.6-192.168.1.16 |
I tried below .. but sometimes it doesnot work for some sites (such as https://facebook.com .. etc)
I have /etc/squid/src/freehttps allowedhttps.domain1.com allowedhttps.domain2.com .. in squid.conf acl clients src 192.168.1.0/24 acl freehttps url_regex -i "/etc/squid/src/freehttps" acl CONNECT method CONNECT http_access allow CONNECT freehttps htto_access allow clients http_access deny all I still able to visit https://www.facebook.com what I missed? |
Quote:
|
Although I changed it to
acl clients src 192.168.1.0/24 acl freehttps dstdomain "/etc/squid/src/freehttps" acl CONNECT method CONNECT http_access allow CONNECT freehttps htto_access allow clients http_access deny all I still able to visit https://www.facebook.com in "/etc/squid/src/freehttps" contains: domain1.com domain2.com |
and by the way .. I am running transparent proxy.. any comment?
|
and in /var/log/squid/access.. I found the following..:
1954 POST http://204.11.16.115:80/toolbar/activate.php - NONE/- text/html I dont know how to block such address? |
Quote:
Code:
acl clients src 192.168.1.0/24 Quote:
Code:
.domain1.com Quote:
|
All times are GMT -5. The time now is 07:16 AM. |