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
-
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
-
You can do this ..
try this
# 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.
-
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