|
| |
|
|
w4gbb
Posts: 3 Joined: 3/8/2003 Status: offline
|
.htaccess rewrite engine/redirect - 3/8/2003 22:56:58
All the instructions I find are to use " redirect" to protect image files. What about audio files? My problem is people are " hot-linking" to my audio files. Will the following lines work with audio files also? RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://somesite.us/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.somesite.us/.*$ [NC] RewriteRule .*\.(gif|JPG)$ http://somesite.us/rasberry.gif [R] Thanks. Links removed per request from member.
< Message edited by Swirl -- 3/9/2003 7:54 AM >
|
|
|
|
Gene
Posts: 2268 From: Mississippi USA Status: offline
|
RE: .htaccess rewrite engine/redirect - 3/9/2003 1:52:51
I am not sure about the sound, but what makes you assume any of your pictures are safe? They are easily downloaded.
_____________________________
Gene White Web Design, Domain Name Registration, Hosting, Computer Repair http://www.gwhitedesign.com
|
|
|
|
w4gbb
Posts: 3 Joined: 3/8/2003 Status: offline
|
RE: .htaccess rewrite engine/redirect - 3/9/2003 5:04:54
OK. VOILA!!!!! It works great with wav, mp3, jpq and gif. Any file extention. I don' t have any pics that I am worried about but my sound files are large and the bandwidth thieves were depleting my bandwidth by hot linking to the files. Here is the full vode and you don' t need password protection: ------------------------------------ AuthUserFile /dev/null AuthGroupFile /dev/null RewriteEngine On RewriteCond %{HTTP_REFERER} !>http://www.somesite.com [NC] RewriteCond %{HTTP_REFERER} !>http://somesite.com [NC] RewriteCond %{HTTP_REFERER} !>http://198.xx.xxx.xxx [NC] ReWriteRule .*\.(jpg|wav|gif|mp3)$ http://www.somesite.com/ [R,L]
< Message edited by Swirl -- 3/9/2003 7:55 AM >
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|