Linux Forums - Linux Help,Advice & support community:LinuxSolved.com

Network Troublshooting => Linux Proxy Server Support => Topic started by: foopirata on July 29, 2005, 10:43:02 AM

Title: prevent downloading in certain time
Post by: foopirata on July 29, 2005, 10:43:02 AM
hi

how can i prevent download to certain extension like ( .exe .rm and .wmv)
in this times    3 pm to 9 pm  

in want to restrict download in this time and open it later
and thanks in advanced
Title: prevent downloading in certain time
Post by: Ricky on July 30, 2005, 05:10:45 PM
You can do this ..
try this
Code: [Select]
# This line will set the acl "eve" to donate time between 1800 to 20:30 hr.
acl eve time 18:00-20:30

 #these are files extension u want to stop from downloading, you can add more.
acl bad url_regex -i  \.exe$ \.mpg$ \.avi$

 # now this line will deny those files when its eve ie evening.
http_access deny bad eve

 # now we have to allow bad rest of the time
http_access allow test


Try above, its not tested, and I hope you have got some idea.
Title: download ristriction in office hours
Post by: praful_thakare on September 16, 2005, 11:34:09 AM
hello rickey....

i try this nutis not woking

This line will set the acl "eve" to donate time between 1800 to 20:30 hr.
acl eve time 18:00-20:30

 #these are files extension u want to stop from downloading, you can add more.
acl bad url_regex -i  \.exe$ \.mpg$ \.avi$

 # now this line will deny those files when its eve ie evening.
http_access deny bad eve

 # now we have to allow bad rest of the time
http_access allow test

any other way to block...

and also tell is it possible to block upload also?


thank you