Forum Moderators: coopster & phranque

Message Too Old, No Replies

Weird .htaccess problem

Direct link is protected but Save target as.. still works

         

Scarf22

3:05 am on Dec 31, 2001 (gmt 0)



Hi,

I hope someone can help me with the following problem:

I'm working on my hobby site [m5.nl ] (dutch only) where i display some collected BMW movies. Because i want to pw protect the video dir i've created a .htaccess:

<Files *>
AuthName "M5 Download Section"
AuthType Basic
AuthUserFile /usr/local/www/passwd/.htpasswd
require valid-user
</Files>

Now here's the prob: When i directly click on a video link, f.i. [m5.nl ] the password dialog will be OK displayed. BUT if i don't left click the link and try to right click ans Save Target As... the download will start whitout the password dialog !??

For a video page see [m5.nl ] - the second link (m5.nl-m0105.mpg) has a video behind the link (linktext = 'Klik hier om te downloaden')

Anyone a clue ? Thanx in advance !

Hubert de Jong

CaptainKarl

3:24 am on Dec 31, 2001 (gmt 0)



RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://www.atdomain.net/.*$ [NC]
RewriteCond %{REQUEST_URI} !/update/movies
ReWriteRule .*\.(¦gif¦GIF¦mpg¦MPG¦avi¦AVI¦mov¦MOV¦rm¦RM¦wav¦WAV)$ [atdomain.net...] [R,L]

idiotgirl

5:25 am on Dec 31, 2001 (gmt 0)

10+ Year Member Top Contributors Of The Month



captainkarl- doesn't the rewrite engine sometimes run afoul with .htaccess unless mod_rewrite is installed?

It's a problem I ran into just recently. I have a virtual box with subdomains under me. I did the rewrite engine deal with .htaccess... and blew out every client's site (for about five minutes). The techs told me it was because mod_rewrite wasn't installed.

Just curious.