[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-security] Restricting access to certain file types HELP!



Hi all,

I need to restrict access to all Real media files & Windows Media on a site.
When someone clicks on a link that goes to a media file, I need to redirect
them to temporary "not available" page.  I tried a redirect in the
.htaccess, but that didn't work, I got "Internal server error"

My .htaccess file:

RedirectMatch .*.ram	http://www.domain.com/novideo.html
RedirectMatch .*.rm	http://www.domain.com/novideo.html
RedirectMatch .*.asx	http://www.domain.com/novideo.html
RedirectMatch .*.asf	http://www.domain.com/novideo.html

Any way of doing this from .htaccess files on a RAQ4?

I know I could put a <Files> directive in the access.conf, but I'd rather
not mess with that file and use .htaccess.

Any ideas, suggestions?

TIA
Ervin