OutFront Forums
     Home    Register     Search      Help      Login    

Follow Us
On Facebook
On Twitter
RSS
Via Email

Recent Posts
Todays Posts
Most Active posts
Posts since last visit
My Recent Posts
Mark posts read

Sponsors
Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.
Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.
Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

 

.htaccess rewrite engine/redirect

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Microsoft FrontPage Help >> .htaccess rewrite engine/redirect
Page: [1]
 
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

(in reply to w4gbb)
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 >

(in reply to Gene)
Page:   [1]

All Forums >> Web Development >> Microsoft FrontPage Help >> .htaccess rewrite engine/redirect
Page: [1]
Jump to: 1





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