Link to home
Start Free TrialLog in
Avatar of Aminadav
AminadavFlag for United States of America

asked on

The best way to restrict access to file using Referrer (iis)

Hello.

I have lot of media on my server (video and images).
I want to block the access to the files directly and allow to view the files when there are embed in my  webpage. (for example: www.example.com)

What is the best way to do it?

I am using IIS7.

If it is not possible in IIS7, I would like to hear ideas, how to do it in APACHE. (I can move to apache)
ASKER CERTIFIED SOLUTION
Avatar of Aminadav
Aminadav
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Aminadav

ASKER

I found it alone.
hope you're aware that the Referer check is no bullet proof solution
It is one of the easiest to bypass. Another way is to encode the file and then send it byte by byte, which I was working on a finished piece of code when the asker closed the question.