473,508 Members | 2,380 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Limiting access to content

Hi,

I'm currently working on a webproject with ASP.NET 2.0, Visual Studio
2005, and SQL Server 2005 that allows users to search for and view
images. My problems is that I need a way to limit users from directly
accessing or linking to the images, but without needing to require
users to logon.
Currently, the site stores the images in a private directory and uses
the database for searches and file path information (I.E. the Image
WebControl, ImageURL receives the file path). How do I allow the user
to view images in the private folder (by use of an aspx page and Image
WebControl) without making them public, or how can I store them so that
directly accessing the file sends the user to a search page?
Any help would be greatly appreciated. Thanks in advance!

Dec 21 '06 #1
1 1077
"Technical" <T3****@gmail.comwrote in message
news:11*********************@f1g2000cwa.googlegrou ps.com...
I'm currently working on a webproject with ASP.NET 2.0, Visual Studio
2005, and SQL Server 2005 that allows users to search for and view
images. My problems is that I need a way to limit users from directly
accessing or linking to the images, but without needing to require
users to logon.
This question gets asked every month or so...

The short answer is - you can't...

In order for an image to be visible, the browser has to display it. This may
sound obvious, but it's fundamental to your issue. And in order for the
browser to display it, the server will stream it down to the client browser
as part of the WebResponse stream, whereupon the browser will almost
certainly place a copy of the image in its cache.

The best you can really hope for without resorting to implementing a secure
system (i.e. logging in) is to make thumbnails or, at least, copies of the
images which are of sufficient quality to be meaningful but which are not
worth downloading - maybe place a watermark such as 'SPECIMEN' over the
image...
Dec 21 '06 #2

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

Similar topics

1
1737
by: Daniel | last post by:
limiting access to files with asp.net is there any way i can make a file only accessible to certain users of my website? my files are to large to copy to a temp directory and they are of many...
1
2522
by: Bobbak | last post by:
Hello All, I am having trouble with this forum I am developing in Access; I have two combo boxes, one containing the Director info, and the other containing the Manager info. Now what I want to...
2
1583
by: Jo Davis | last post by:
access fe and access be. later the be might be sql server I don't want people to pass this application around. And I want control over usage. I want it to 'expire' after a while. I have fairly...
5
3207
by: randyelliott | last post by:
Good Day, I have a MS Access (Access 2000 now upgraded to 2003) database that tracks customer information. One function of this database is to create an encrypted license file for our software,...
2
2255
by: Gerry Abbott | last post by:
Hi all, Im using an ubound form and recordsets for data update. Id like to trap invalid entries on this form. How can i limit the number of characters the user enters for a particular field. ? ...
4
1614
by: N J | last post by:
Hi, I ahve developed a program using access and am distributing it using MDE's, I ahve had many requests for a demo. I was thinking of limiting the number of records to say 100? If anyone has...
6
1639
by: Neven Klofutar | last post by:
Hi, Is there a way to limit this field, because "maxlength" seems to be working only for singleline ? thanx, Neven
7
1843
by: atyndall | last post by:
Basically, I have a email script which (on the sending of the email) writes into a file handle called $fcf (on a new line) with the senders ip address ($ipaddress) and the time on which they sent...
4
7184
by: Dimitrios Apostolou | last post by:
Hello list, I want to limit the download speed when using urllib2. In particular, having several parallel downloads, I want to make sure that their total speed doesn't exceed a maximum value. ...
2
1952
by: prakashwadhwani | last post by:
I've used Dbase/Clipper for years & Access for a little while now but Access doesn't seem to have any elegant solution to limiting the size of a text box ... i.e. the max number of characters that...
0
7223
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
7115
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7321
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7036
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
7489
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...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1547
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
414
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.