← Back to team overview

sslug-teknik team mailing list archive

Re: Squid og adgangskontrol

 

Daniel Stjernholm Andersen wrote:

> Konkret handler det om at begrænse størrelsen på de filer, der slipper
> gennem cachen, til max 500kb samt forhindre nogle bestemte ord i URL'en,
> men det ser ud til at kunne klares med 'URL Regexp'?

Fra squid.conf.default:

#       acl aclname url_regex  ^http:// ...     # regex matching on
whole URL
#       acl aclname urlpath_regex  \.gif$ ...   # regex matching on URL
path

såeh:
 acl mp3http url_regex ^http://[\w,\.]*mp3[\w,\.]*/.*
 acl mp3ftp url_regex ^ftp://[\w,\.]*mp3[\w,\.]*/.*

URL'en matcher mp3 i site navnet

 acl mp3files url_regex \.*mp3$

F.eks for sex:
 acl sexhttp url_regex ^http://[\w,\.]*sex[\w,\.]*/.*
 
etc...

URL'ens endelse matcher mp3

Jeg ved ikke med request_size om det er den rigtige parameter at stille
på

#
#request_size 100 KB


-- 

Servicepack SR12 for NT. Available at www.linux.org

--    Morten S. Nielsen    mailto:msn@xxxxxxxxxx
--
--  |   Linux - the choice of a GNU generation   |
--  |      Skaane Sjaelland Linux User Group     |
--  |         at http://www.sslug.dk             |