Preventing direct linking picture and video files ?

P

Petri

Dear newsreaders,

Access to aspx-pages can be prevented for example checking authentication
cookie
on page_onload part of code.
But is there any way to prevent direct access to indivual files (eg.
picture.jpg , video.wmv )
so that instead of showing file contents there would be a redirection to an
authentication form ?
The idea here is to prevent direct / hotlinking to my web site resources.
I am using a hosting service, so I do not have access to IIS settings.
I would appreciate any idea.

best regards,

Petri
 
J

John Timney \(Microsoft MVP\)

Write an iHTTPModule that checks for the referrer and redirect if its not
coming from within one of your pages.

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,052
Latest member
LucyCarper

Latest Threads

Top