1
   

How to prevent streaming of files with htaccess?

 
 
View Profile 993ti
 
Reply Tue 23 Nov, 2004 06:20 pm
How do i prevent streaming of files like .wmv and .mpg with htaccess and force visitors to right click and save as?
I tried this:
Code:RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://wwwDOTwebsiteDOTcom [NC,OR]
RewriteCond %{HTTP_REFERER} !^http://websiteDOTcom [NC]
RewriteRule [^/]+.(wmv|AVI|WMV|mpeg|MPEG)$ - [NC,F,L]

Left clicking shows a 403 forbidden but they can't get the file by right clicking neither.
Any tips?
 
  1  
Reply Tue 23 Nov, 2004 10:02 pm
I'm not sure how you purport to do it with .htaccess.

I'd just zip them.
0 Replies
 
View Profile 993ti
 
  1  
Reply Fri 3 Dec, 2004 10:34 pm
Well, my users are able to upload media files, and most of the time, they don't zip them.
Grtz
0 Replies
 
  1  
Reply Sun 5 Dec, 2004 06:35 am
You can always force uploads to be zipped. Many sites do that for security.
0 Replies
 
 

Related Topics

I'm the developer - Discussion by Nick Ashley
how to earn money in internet - Discussion by rizwanaraj
THANK YOU CRAVEN AND NICK!!! - Discussion by dagmaraka
The version 10 bug. Worse then Y2K! - Discussion by Nick Ashley
CSS Border style colors - Question by meesa
There is no Wisdom in Crowds - Discussion by ebrown p
mod rewrite for a different theme? - Discussion by etali
 
  1. able2know
  2. » How to prevent streaming of files with htaccess?
Copyright © 2009 Horizontal Verticals :: Page generated in 0.38 seconds on 11/22/2009 at 03:18:47 Top End