Welcome to WebmasterWorld Guest from

Forum Moderators: bakedjake

Using .htaccess redirection

Some problems

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

10+ Year Member

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}!> [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]

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

WebmasterWorld Administrator brett_tabke is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

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.


Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month