RE: File downloads

From: Pedram Rahimi (PedramRahimi_at_discussions.microsoft.com)
Date: 02/13/05


Date: Sun, 13 Feb 2005 02:55:01 -0800


..
1- You can make a Field in your Access Database in OLE object type .
     And then insert files in database not in a path or folder .
     of course it is not a method with good performance .
    Authentication and Authorization will do from database .

2- Make a folder outside wwwroot and rename it to "uploads" then
     copy all secured files in it . Now for addressing use this code
  <a href='<% Server.MapPath("../uploads/yourfile1.zip") %>'>Link</a>
    When user click on link must enter Username and Password that
    made in Windows .
..

"Pete" wrote:

> I have an Access db with usernames and passwords set up on a web site. Upon
> signing in to a password protected asp page which contains a link to an exe
> file, the user clicks the link and the browser asks to either Open or Save
> the file.
>
> All this works fine, but if the user simply types the full path to the file
> in the address bar, the browser again asks the user to either Open or Save
> the file - thus bypassing the security.
>
> Is there a way to prevent this "back door" method of accessing the file or
> would I have to set up an FTP mechanism. If so, How would I go about this?
>
> Many thanks.



Relevant Pages

  • Re: Question: Multiple Databases or Single
    ... one back end (mdb), containing just the tables, in a shared location; ... Unless your database is pushing 1GB in size, ... any OLE Object type fields, ... Presumably you have already tried compacting to reduce the size: ...
    (microsoft.public.access.forms)
  • Re: Tables - Cells - Preview Mode
    ... That is where a database driven web site comes into play, ... Thomas A. Rowe (Microsoft MVP - FrontPage) ... > peices when previewed anywhere....in the browser or in ... distributing cells around and ect. ...
    (microsoft.public.frontpage.client)
  • Re: Replication problems
    ... An error occurred while accessing the DHCP database. ... DHCP server event log for more information on this error. ... browser for the domain on transport NetBT_Tcpip_{99B638B5-2C0B. ... master browser is stopping or an election is being forced. ...
    (microsoft.public.windows.server.active_directory)
  • Re: PMJ The REALLY final card list (nearly!)
    ... The url in each link includes a big lump of the database. ... I've had a look back through the server Logs & the File is being ... Maybe it's a Cache prob? ... Sometimes the Browser is getting the File Served up incorrectly. ...
    (uk.people.silversurfers)
  • Re: HTML doc save dialog
    ... After getting the string from database do not set the string to ... > and end html tags. ... In the document complete event of browser, ...
    (microsoft.public.dotnet.languages.csharp)

Loading