as astaro is working with squid, the best way to go is searching in google for "squid FAQ" If you are not feeling like searching just read the following: ------------------------------------------------ go to /var/chroot-squid/etc/ and edit the file squid.conf-default, then edit the file at ACCESS CONTROLS and write something like: acl myrule url_regex name1 name2 name3 ...nameN where name1 to nameN are words that you want to block. Then at the http_access before http_access allow all, insert http_access deny myrule then start and stop squid /sbin/init.d/squid stop /sbin/init.d/squid start ------------------------------------------------ That should be all, have fun! [:)] P.S: Even more interesting than that url blocking is this file flocking... acl download_files urlpath_regex \.hqx$ \.bin$ \.mpeg$ \.avi$ \.rar$ \.ace$ \.mpe$ \.mov$ http_access deny download_files, try it!
as astaro is working with squid, the best way to go is searching in google for "squid FAQ" If you are not feeling like searching just read the following: ------------------------------------------------ go to /var/chroot-squid/etc/ and edit the file squid.conf-default, then edit the file at ACCESS CONTROLS and write something like: acl myrule url_regex name1 name2 name3 ...nameN where name1 to nameN are words that you want to block. Then at the http_access before http_access allow all, insert http_access deny myrule then start and stop squid /sbin/init.d/squid stop /sbin/init.d/squid start ------------------------------------------------ That should be all, have fun! [:)] P.S: Even more interesting than that url blocking is this file flocking... acl download_files urlpath_regex \.hqx$ \.bin$ \.mpeg$ \.avi$ \.rar$ \.ace$ \.mpe$ \.mov$ http_access deny download_files, try it!