473,394 Members | 2,031 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Preventing direct linking picture and video files ?

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


Nov 18 '05 #1
1 1637
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
"Petri" <pm*@netsonic.fi> wrote in message
news:hX***************@reader1.news.jippii.net...
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

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: J C-W | last post by:
I have a directory with files (of various formats) contained within a website which uses PHP to control user access via session variables. I would like to protect the directory from direct external...
3
by: walkeraj | last post by:
I'm trying to compile an open source game called IVAN , and I'm able to compile it from a makefile, but not from an IDE. I have attempted to recreate the way the makefile compiles the project as...
15
by: Baron Samedi | last post by:
Every so often, I see someone wanting to prevent heir images being downloaded and the general consensus is "you can't". Now a friend has asked me to think some more about this, and I think that...
3
by: Jim Ford | last post by:
This is more strictly an HTML problem, but as I'm also using PHP and the HTML groups seem to be infested with spam, I'm posting it here! At the school where I work I've got an online searchable...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.