Web Hosting Talk







View Full Version : restricting files


clocker1996
12-30-2001, 02:27 AM
Is it possible to make it so all .jpg .gif .bmp (images) will be restricted in /home/sites/domain.com/public_html/

What ims aying is what if a site you are hosting is overloading your serer and slowing it down. And temporarily you want to restrict all images and allow only .shtml and .html and .htm files ?

What would i need to add to httpd.conf to do this? is it even possible

priyadi
12-30-2001, 03:26 AM
Originally posted by clocker1996
Is it possible to make it so all .jpg .gif .bmp (images) will be restricted in /home/sites/domain.com/public_html/

What ims aying is what if a site you are hosting is overloading your serer and slowing it down. And temporarily you want to restrict all images and allow only .shtml and .html and .htm files ?

What would i need to add to httpd.conf to do this? is it even possible

Use mod_throttle, and put all your images on a dedicated directory.


<Directory /dir/containing/images/>
ThrottlePolicy ...
</Directory>

See the manual of mod_throttle for the correct parameters of ThrottlePolicy.