473,406 Members | 2,312 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,406 software developers and data experts.

How to protect files in a hosted environment?

How do you protect files (such as .PDF) in a hosted (Interland) environment
when you have no access to IIS?

Nov 19 '05 #1
4 1323
Ray try seeing this article at:-
http://aspnet.4guysfromrolla.com/articles/020404-1.aspx
Hope it helps
Patrick

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #2
The problem with the article is that you have to muck about with IIS. I don't
have that option in a hosted environment. Also, there is no protected
database subdirectory.

"Patrick Olurotimi Ige" wrote:
Ray try seeing this article at:-
http://aspnet.4guysfromrolla.com/articles/020404-1.aspx
Hope it helps
Patrick

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 19 '05 #3
I don't think the ForbiddenHandler will work, since he does not have
access to IIS (to map file types to the ASPNET ISAPI).

The only solution I can think of is to store the files as binary data in
a database. SQL Server and Oracle have specifica column types for this
purpose. You would then create a custom httphandler (.ashx file, since
you cannot map a new file type) that handles retrieving the file data
from the database and sending it to the Response output stream. You can
figure out which file to retrieve using a querystring.

So:
http://myserver/application/Instructions.pdf
becomes:
http://myserver/application/FileLoad...structions.pdf
or:
http://myserver/application/FileLoader.ashx?fileID=110 (where 110 is an
ID column in the database that identifies the Instructions.pdf file).

Note, in the databse table, you will want to at least store the
filename, file contents (binary), and content type (so that you can set
the Response.ContentType when you return the data).
Joshua Flanagan
http://flimflan.com/blog

Patrick Olurotimi Ige wrote:
Ray try seeing this article at:-
http://aspnet.4guysfromrolla.com/articles/020404-1.aspx
Hope it helps
Patrick

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 19 '05 #4
Protect them from whom? Do you have access to anyone else's hosted files on
the server? If not, what makes you think anyone else has access to yours?
And if nobody has access, in what way do you need to additionally protect
them?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"Ray Stevens" <Ra********@discussions.microsoft.com> wrote in message
news:AA**********************************@microsof t.com...
How do you protect files (such as .PDF) in a hosted (Interland)
environment
when you have no access to IIS?

Nov 19 '05 #5

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

Similar topics

11
by: Pradyut | last post by:
what's the difference between a .h and a .hpp file Also please tell me something about .rh files -- Pradyut http://pradyut.tk http://groups.yahoo.com/group/d_dom/...
15
by: Fady Anwar | last post by:
Hi while browsing the net i noticed that there is sites publishing some software that claim that it can decompile .net applications i didn't bleave it in fact but after trying it i was surprised...
2
by: Jordan | last post by:
I'm implementing ASP.NET Forms authentication, and storing passwords in a SQL Server database. Just wondering what some of you who have implemented this scenario in a hosted environment do to...
2
by: Urs Eichmann | last post by:
We're developing a standard software application (ASP.NET) which will run on servers of various ISP in a shared/hosted environment. With the ISP I usually work with it is no problem to get a folder...
6
by: Michael Tissington | last post by:
I have setup up Forms Authentication on my website and added configuration/mappings for exe, pdf and zip files (using C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll) However when...
7
by: mosscliffe | last post by:
I have 4 text files each approx 50mb. I need to join these into one large text file. I only need to do this very occasionally, as the problem has occurred because of upload limitations. ...
0
GrayHairedHippieGeek
by: GrayHairedHippieGeek | last post by:
I have an application that I developed in a windows environment, but I also have it hosted on a unix site. My problem is that I have my user guides in mht files, works good on the windows version...
4
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I protect my javascript code? ----------------------------------------------------------------------- ...
0
by: hsheboul | last post by:
Thanks to Markus for pointing me to all the Apache stuff http://bytes.com/topic/html-css/answers/876342-automating-web-site-template My Web site is hosted on a shared Linux hosting, that runs the...
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.