Quote:
Originally Posted by kuddush
Dear,
i am using RHEL 5. i configured proxy server. now i want block one website. can anyone help me how to configure.
regards
kuddush
|
These lines is what you need
-----------------------------
acl blockfiles urlpath_regex "/etc/squid/badcontent.acl"
acl blocksites dstdomain "/etc/squid/badsites.acl"
acl mynetwork src 192.168.10.0/24
http_access deny mynetwork blockfiles
http_access deny mynetwork blocksites
---------------------------------------
Contents of /etc/squid/badcontent.acl file
\.[Aa][Vv][Ii]$
\.[Mm][Pp][Gg]$
\.[Mm][Pp][Ee][Gg]$
\.[Mm][Pp]3$
Contents of /etc/squid/badsites.acl file
.facebook.com
.microsoft.com
.cnn.com
.youtube.com