Welcome to WebmasterWorld Guest from 54.157.225.99

Forum Moderators: bakedjake

Message Too Old, No Replies

Using .htaccess redirection

Some problems

     

w4gbb

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

Inactive Member
Account Expired

 
 


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]

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

Administrator from US 

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

joined:Sept 21, 1999
posts:38066
votes: 15


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.

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members