473,385 Members | 1,748 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,385 software developers and data experts.

Content Repository - Security

Hi All,

I am developing a Content Repository to store some html pages (htmls have
some embadded resources such as images)

I keep all the html files and their resources away form the wwwroot, when a
logged-in user requested for a particular html page.. I get the location of
that html file from the DB and send it to the user while copying all the
embadded resources belong to this file in to another temp folder in wwwroot.
I re-write all the reference link of these images in the html file to match
with the new location.. there when user try to see the html with their
browser they see the embadded resource as well.. but if the user right click
on a embaded resource and copy the URL (resource link) and later even after
he logged out, he can use the same copied URL to get the image again.. since
it is there in that online folder.. Is there any better way with ACL or
anything that I can avoid this senario in ASP.NET..

Thanks,
Regards
Nirosh.
Nov 16 '05 #1
2 1566
Hi,

You could put some code in the Session_End which clears down all html
pages when a users session ends. The only trouble there is you would
have to keep track of what files each user has viewed. Plus, if more
than one user views the same file it will get very tricky.

If you are using windows integrated security you could always put the
html "store" within your WWWRoot and set the permission of the folder
so only logged on users could view the files.

Another option which would work would be instead of copying the files
to a temp folder and providing a link, read the files from their safe
location and stream the files directly to the browser (instead of
saving to disk). This wouldn't work too well with html files and
seperate images, but would be fine if you saved the html files out as
mht's.

Regards,

Peter Chadwick (MCP)
pe**@code-explorers.com

Nov 16 '05 #2
Thanks for the helps... yes .. I knew these options.. plus u can have some
sperate cache folders (in WWW root) for each registered user and allow them
to cache their content in these temp folders.. but I thought that .net would
have a better way to tackle this issue... I heard that Java got a solution
called URL- rewriting or some thing... Do you know any thing some what
similar in .net

Nirosh.

<pe**@code-explorers.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
Hi,

You could put some code in the Session_End which clears down all html
pages when a users session ends. The only trouble there is you would
have to keep track of what files each user has viewed. Plus, if more
than one user views the same file it will get very tricky.

If you are using windows integrated security you could always put the
html "store" within your WWWRoot and set the permission of the folder
so only logged on users could view the files.

Another option which would work would be instead of copying the files
to a temp folder and providing a link, read the files from their safe
location and stream the files directly to the browser (instead of
saving to disk). This wouldn't work too well with html files and
seperate images, but would be fine if you saved the html files out as
mht's.

Regards,

Peter Chadwick (MCP)
pe**@code-explorers.com

Nov 16 '05 #3

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

Similar topics

0
by: Scott Abel | last post by:
For immediate release: The Rockley Group Content Management Workshop Series Coming to Atlanta, Seattle, Vancouver, Chicago, Washington, DC, Toronto, and Research Triangle Park Learn more:...
3
by: Tom | last post by:
Hi, I am currently looking for a Content Management System for one of my project in ASP.NET. Here are the requirements: * web based content management * ability to enter content/fragment...
2
by: Lars | last post by:
Hello, Anynoby knows a content repository similar to Content Repository for Java? I want to use a content repository without dependency of the storage system. I want to use file system or...
2
by: Sandman | last post by:
Ok, so I'm the author of a pretty big CMS system (big as in huge, not market-share big) and I've been thinking about a problem for a few weeks here on media management. The CMS accomodates both...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...

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.