Forum Moderators: phranque

Message Too Old, No Replies

htaccess files access limited to other domain

         

samwise

7:29 pm on Dec 16, 2004 (gmt 0)

10+ Year Member



Hi,

I have two websites where one of the websites has a lot of available bandwidth (Site A) while the other is rather limited (Site B).

I would like to store some large video files on Site A that can only be accessed from Site B. By accessed I mean someone coming to Site B will be able to download the files stored on Site A, but if they go to Site B they will not be able to.

I've been trying to do this using htaccess but haven't been able to.

Any Ideas would be appreciated

Thanks for your help

ogletree

8:05 pm on Dec 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



All you need to do is check for HTTP_REFERER. If they came from your the right site they can get it.

jdMorgan

7:57 am on Dec 17, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Media players don't typically provide a referrer, though...

Jim