Squid - [squid-users] How to prevent to download files

This is Interesting: Free IT Magazines  
Home > Archive > Squid > April 2004 > [squid-users] How to prevent to download files





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author [squid-users] How to prevent to download files
Remus

2004-04-30, 11:38 am


Hi folks,

What kind of acl rule I have to use to prevent users to download all files,
except the .pdf, .doc, and .xls?

Thanks in advance

Remus


Tolga YAMAN

2004-04-30, 11:38 am

acl nodownloadfiles urlpath_regex -i "/etc/squid/anyfilename"
http_access deny nodownloadfiles

insert this 3 lines to your "/etc/squid/anyfilename" file

---------cut------
\.pdf$
\.doc$
\.xls$
---------cut------

Regards
Tolga


-----Original Message-----
From: Remus [mailto:rmocius@auste.elnet.lt]
Sent: Friday, April 30, 2004 5:53 PM
To: squid-users@squid-cache.org
Subject: [squid-users] How to prevent to download files



Hi folks,

What kind of acl rule I have to use to prevent users to download all files,
except the .pdf, .doc, and .xls?

Thanks in advance

Remus




Tolga YAMAN

2004-04-30, 12:38 pm

oups..

sorry i misunderstood your question..
maybe you can try this:

acl justdowloadthisfiles urlpath_regex -i "/etc/squid/justdowloadthisfiles"
acl nodowloadthisfiles urlpath_regex -i "/etc/squid/nodowloadthisfiles"
http_access deny !justdowloadthisfiles nodowloadthisfiles

i think this will work..

Regards
Tolga


-----Original Message-----
From: Tolga YAMAN [mailto:tolga.yaman@endel.com.tr]
Sent: Friday, April 30, 2004 6:37 PM
To: Remus; squid-users@squid-cache.org
Subject: RE: [squid-users] How to prevent to download files


acl nodownloadfiles urlpath_regex -i "/etc/squid/anyfilename"
http_access deny nodownloadfiles

insert this 3 lines to your "/etc/squid/anyfilename" file

---------cut------
\.pdf$
\.doc$
\.xls$
---------cut------

Regards
Tolga


-----Original Message-----
From: Remus [mailto:rmocius@auste.elnet.lt]
Sent: Friday, April 30, 2004 5:53 PM
To: squid-users@squid-cache.org
Subject: [squid-users] How to prevent to download files



Hi folks,

What kind of acl rule I have to use to prevent users to download all files,
except the .pdf, .doc, and .xls?

Thanks in advance

Remus






Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com