homepage Welcome to WebmasterWorld Guest from 54.226.180.86
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
Using .htaccess redirection
Some problems
w4gbb




msg:915428
 9:07 pm on Mar 9, 2003 (gmt 0)

I am using the following in my .htaccess file to prevent "hot-linkers" from accessing my audio files and depleting my bandwidth allocation:

AuthUserFile /dev/null
AuthGroupFile /dev/null

RewriteEngine On

RewriteCond %{HTTP_REFERER}!>http://www.example.us [NC]
RewriteCond %{HTTP_REFERER}!>http://example.us [NC]
RewriteCond %{HTTP_REFERER}!>http://123.123.123.123 [NC]

ReWriteRule .*\.(jpg¦wav¦gif¦png¦mp3)$ http://www.example.com/rasberry.gif [R,L]

This works fine with my embedded mp3 files:
<embed src="nane.mp3" width=145 height=60 autostart="false">

However it does not seem to work with my embedded WAV files.

Any ideas?

[edited by: Brett_Tabke at 5:28 am (utc) on Mar. 10, 2003]
[edit reason] fixed links [/edit]

 

Brett_Tabke




msg:915429
 5:29 am on Mar 10, 2003 (gmt 0)

First, welcome to the board.

hmmm. Interesting. Not sure there is a solution there for you. Since the htaccess is working for mp3's, then it should be for wavs as well.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved