Search squid archive

Re: [squid-users] Stop downloading at specific time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> acl magic_words1 url_regex -i 10.0
> aacl magic_words2 url_regex -i ftp .exe .mp3 .vqf
> .tar.gz .gz .rpm


while detecting specific pattern on URL you have to
selecte urlpath_regex acl type and you have to use \
to delimite . character there as,

acl magic_words1 urlpath_regex -i 10\.0
acl magic_words2 urlpath_regex -i ftp \.exe \.mp3
\.vqf \.tar\.gz \.gz \.rpm \.zip \.rar \.avi \.mpeg
\.mpe \.mpg \.qt \.ram \.rm \.iso \.raw \.wav \.mov

> acl day time 18:30-23:59

Specify day duration as,

acl day time S-A 18:30-23:59

> delay_pools 2
> delay_class 1 2
> delay_parameters 1 -1/-1 -1/-1
> delay_access 1 allow magic_words1

Use deny to all acl as,

delay_access 1 deny all

> delay_class 2 2
> delay_parameters 2 5000/15000 5000/12000
> delay_access 2 allow day
> delay_access 2 deny !day
> delay_access 2 allow magic_words2

Confusing with deny !day and allow day access rules.
Try as,

delay_class 2 2
delay_parameters 2 5000/15000 5000/12000
delay_access 2 allow day
delay_access 2 allow magic_words2
delay_access 2 deny all

> #####################################
> acl dtime time S-A 00:00-23:59
> acl durls urlpath_regex -i \.exe$ \.mp3$ \.mov$
> \.mpg$ \.mp?$ \.avi$ \.rm$
> acl dfilters url_regex -i root.exe kmd.exe kazaa.exe
> imesh.exe msblast.exe

Again, Don't use specific string detection on URL with
url_regex acl type. Try as,

acl dfilters urlpath_regex -i root\.exe kmd\.exe
kazaa\.exe
imesh\.exe msblast\.exe

> http_access deny durls
> http_access deny dfilters

Try it. 


==================================================
Best Regards,
Squid Runner Support
squidrunner_dev at yahoo dot com

Web: http://geocities.com/squidrunner_dev/
Support: runnersupport at gmail dot com

SquidRunner - An Automatic Squid Builder 
==================================================

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux