April 27, 2024, 03:38:41 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: prevent downloading in certain time  (Read 3754 times)

Offline foopirata

  • Linux Noob !
  • *
  • Posts: 13
prevent downloading in certain time
« 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

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
prevent downloading in certain time
« Reply #1 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.

Offline praful_thakare

  • Linux Noob !
  • *
  • Posts: 24
download ristriction in office hours
« Reply #2 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