On Saturday 12 August 2006 23:33, S t i n g r a y wrote:
> Well thanks to all the help you guys provided i have enabled for the first
> time OpenBSD + squid+ squidguard on my network, internet seems to work very
> fast now . thank you
>
> now i want to know how to block only specific ips "specified in a file" to
> download .exe & mp3 files from internet according to my limited knowledge i
> have made this config , but its not working , can you please tell me whats
> wrong ? & how should i put it ?
>
> Expression file
>
> \.(ra?m|mpe?g?|mov|movie|qt|avi|dif|dvd?|exe|mp3)($|\?)
You can just put it in squid.conf:
acl big urlpath_regex -i \.mpg$ \.avi$ \.mp4$ \.wmv$ \.mpeg$ \.mp3$ \.cab$
\.exe$ \.dll$ \.src$ \.bin$ \.3gp$ \.rar$ \.mov$ \.ram$ \.rm$ \.asf$ \.zip$
http_access deny big
-- Fajar Priyanto | Reg'd Linux User #327841 | Linux tutorial http://linux2.arinet.org 2:06am up 1 day 7:41, 2.6.16.13-4-default GNU/Linux Let's use OpenOffice. http://www.openoffice.orgReceived on Sun Aug 13 2006 - 13:18:19 MDT
This archive was generated by hypermail pre-2.1.9 : Fri Sep 01 2006 - 12:00:02 MDT