1
   

How to prevent streaming of files with htaccess?

 
 
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?
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Discussion • Score: 1 • Views: 787 • Replies: 3
No top replies

 
Craven de Kere
 
  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
 
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
 
Craven de Kere
 
  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

Webdevelopment and hosting - Question by harisit2005
Showing an Ico File - Discussion by Brandon9000
how to earn money in internet - Discussion by rizwanaraj
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
THANK YOU CRAVEN AND NICK!!! - Discussion by dagmaraka
I'm the developer - Discussion by Nick Ashley
 
  1. Forums
  2. » How to prevent streaming of files with htaccess?
Copyright © 2025 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 01/17/2025 at 11:01:40