M3Server Technical Blog FAQ deny file types from directory

deny file types from directory



Sometimes you may want to block content from certain directories:

– prevent apache from serving the files to prevent mass downloads while allowing your media server to serve them.
– storage directory that shouldn’t serve specific files until they are processed, IE, temp directory

Place this content into the local directory you wish to block files from and all sub directories, such as:
/home/user/site.com/media/videos/.htaccess


order deny,allow

deny from all

Leave a Reply