PDA

View Full Version : htaccess help please


superDAVE
07-27-2001, 01:49 PM
My htaccess is not allowing my movies to play for some reason but it allows everything else in that protected directory. Is there a permission I should put in the code to allow it to play the movies. I use the basic .htaccess below.

AuthUserFile /dev/null
AuthGroupFile /dev/null

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://www.ibonedyoursister.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://ibonedyoursister.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://215.178.45.4/ [NC]
RewriteRule /* http://www.ihopeyoudidntmind.com/shewasgood.htm [R,L]

Any help would be appreciated

superDAVE
07-27-2001, 04:14 PM
anyone.....please.....

kevykev
07-27-2001, 04:15 PM
Go to this board for all your .htaccess ?'s

http://www.perlaccess.com/

kev

superDAVE
07-27-2001, 05:24 PM
I couldnt find anything there specifically about what i was looking for. Whenever I put in that htaccess that i posted above in my directory, my mpegs do not work. I take it out and they work. What can I add to the .htaccess so the mpegs will still play?

moses
07-27-2001, 05:35 PM
Superdave: Most likely the problem is that whatever you're using to view the movies isn't passing a referrer header.

One workaround is to let someone in if they don't have any referrer by adding the following line after the RewriteEngine On line

RewriteCond %{HTTP_REFERER} !^$

This means that if you were using rewrite protection for something like an AVS, someone could now just type in the movie URL and get it.

If you were just using it for hotlink protection, though, it will still do that.

moses