Gday,

>Q1. I want to block *.pdf files from my squid.

Define your ACL:

acl BADFILES urlpath_regex -i "/usr/local/etc/BLOCKEDFILES"

The -i making the match case insensitive.

>Q2. ok fine if that above acl works than how can i
>block more than one files (*.ps, *.pdf, *.doc,*.swf)unlimited with one
command.

In the file BLOCKEDFILES file specified above add the file extensions you
want to block as follows:

\.asf$
\.asx$
\.avi$
\.m3u$

This will block all the file types you specify, hope this helps.

Regards,
Richard Fuser
Firewall Administrator


Reply via email to