.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old October 23rd, 2009, 05:58 AM
nofriends's Avatar
nofriends nofriends is offline
Senior Water Wizard
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Aug 2004
Location: Cape Town, RSA
Posts: 10,203 nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)  Folding Points: 189791 Folding Title: Super Ultimate Folder - Level 1Folding Points: 189791 Folding Title: Super Ultimate Folder - Level 1Folding Points: 189791 Folding Title: Super Ultimate Folder - Level 1Folding Points: 189791 Folding Title: Super Ultimate Folder - Level 1Folding Points: 189791 Folding Title: Super Ultimate Folder - Level 1Folding Points: 189791 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Months 2 Weeks 2 Days 8 h 44 m 57 sec
Reputation Power: 767
ASP.Net/VB.Net - Secure Files

hi everyone

I have a ASP.Net website that uses Form Authentication, I have some secure files that need to be outside of the wwwroot, RR has helped me and I got a solution, I have securedocs folder outside the website from where I can send the files to the browser securely, the problem is, there are swf files as well. but when I send the show.html file the swf itself doesn't show on the page because, according to me, it needs to be in a http accessible folder to show.

What I am ultimately trying to do is block someone trying to type in
http://www.domain.co.za/flash1.swf and download the file directly, they have to be logged into the website to access the files.

Any ideas?

Thanks
__________________
Look! Its a ShemZilla



Reply With Quote
  #2  
Old October 26th, 2009, 02:15 AM
nofriends's Avatar
nofriends nofriends is offline
Senior Water Wizard
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Aug 2004
Location: Cape Town, RSA
Posts: 10,203 nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)  Folding Points: 189791 Folding Title: Super Ultimate Folder - Level 1Folding Points: 189791 Folding Title: Super Ultimate Folder - Level 1Folding Points: 189791 Folding Title: Super Ultimate Folder - Level 1Folding Points: 189791 Folding Title: Super Ultimate Folder - Level 1Folding Points: 189791 Folding Title: Super Ultimate Folder - Level 1Folding Points: 189791 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Months 2 Weeks 2 Days 8 h 44 m 57 sec
Reputation Power: 767
anyone?

Reply With Quote
  #3  
Old October 26th, 2009, 02:40 AM
micky's Avatar
micky micky is offline
Couch Potato Wizard
Click here for more information. Click here for more information
 
Join Date: Jan 2005
Location: India
Posts: 12,685 micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)  Folding Points: 1480 Folding Title: Novice Folder
Time spent in forums: 5 Months 1 Week 5 Days 4 h 5 m 20 sec
Reputation Power: 2358
Hey N
May be you can show/give access to those files only when people are logged in.

If they are not logged in, they cant have access to those files.
__________________
Laziness is my religion and Sunday is my God

Get the Mantra!

Reply With Quote
  #4  
Old October 26th, 2009, 04:04 AM
nofriends's Avatar
nofriends nofriends is offline
Senior Water Wizard
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Aug 2004
Location: Cape Town, RSA
Posts: 10,203 nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)  Folding Points: 189791 Folding Title: Super Ultimate Folder - Level 1Folding Points: 189791 Folding Title: Super Ultimate Folder - Level 1Folding Points: 189791 Folding Title: Super Ultimate Folder - Level 1Folding Points: 189791 Folding Title: Super Ultimate Folder - Level 1Folding Points: 189791 Folding Title: Super Ultimate Folder - Level 1Folding Points: 189791 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Months 2 Weeks 2 Days 8 h 44 m 57 sec
Reputation Power: 767
Mickey, that is what I want to do, but when user knows the direct link to the file, how will it stop him to download it directly?

I was thinking of creating a ASPX page that will fetch the file from a separate folder and display it, when the user logs out, delete all the files from the web accessible area?

Reply With Quote
  #5  
Old October 26th, 2009, 04:15 AM
micky's Avatar
micky micky is offline
Couch Potato Wizard
Click here for more information. Click here for more information
 
Join Date: Jan 2005
Location: India
Posts: 12,685 micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)  Folding Points: 1480 Folding Title: Novice Folder
Time spent in forums: 5 Months 1 Week 5 Days 4 h 5 m 20 sec
Reputation Power: 2358
Are those files only for download purposes or can user view (on site) them also?

Reply With Quote
  #6  
Old October 26th, 2009, 04:29 AM
nofriends's Avatar
nofriends nofriends is offline
Senior Water Wizard
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Aug 2004
Location: Cape Town, RSA
Posts: 10,203 nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)  Folding Points: 189791 Folding Title: Super Ultimate Folder - Level 1Folding Points: 189791 Folding Title: Super Ultimate Folder - Level 1Folding Points: 189791 Folding Title: Super Ultimate Folder - Level 1Folding Points: 189791 Folding Title: Super Ultimate Folder - Level 1Folding Points: 189791 Folding Title: Super Ultimate Folder - Level 1Folding Points: 189791 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Months 2 Weeks 2 Days 8 h 44 m 57 sec
Reputation Power: 767
I have zip/pdf/doc files that users can download via a normal aspx file link, these are secure already, ie. when I type http://www.domain.com/file1.zip it wont download.

but I have SWF files that are embedded in a html page, I want the SWF to be secure as well, but when I put them in a non web accessible folder, it doesn't show on the html page

Reply With Quote
  #7  
Old October 26th, 2009, 04:48 AM
micky's Avatar
micky micky is offline
Couch Potato Wizard
Click here for more information. Click here for more information
 
Join Date: Jan 2005
Location: India
Posts: 12,685 micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)  Folding Points: 1480 Folding Title: Novice Folder
Time spent in forums: 5 Months 1 Week 5 Days 4 h 5 m 20 sec
Reputation Power: 2358
Quote:
Originally Posted by nofriends
but I have SWF files that are embedded in a html page, I want the SWF to be secure as well, but when I put them in a non web accessible folder, it doesn't show on the html page
Hmm, i wonder if you can have it both ways

Maybe you can have something in IIS to do this.
But i dont know

Sorry N, cant help you.

Reply With Quote
  #8  
Old October 26th, 2009, 04:51 AM
nofriends's Avatar
nofriends nofriends is offline
Senior Water Wizard
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Aug 2004
Location: Cape Town, RSA
Posts: 10,203 nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)nofriends User rank is Major General (70000 - 90000 Reputation Level)  Folding Points: 189791 Folding Title: Super Ultimate Folder - Level 1Folding Points: 189791 Folding Title: Super Ultimate Folder - Level 1Folding Points: 189791 Folding Title: Super Ultimate Folder - Level 1Folding Points: 189791 Folding Title: Super Ultimate Folder - Level 1Folding Points: 189791 Folding Title: Super Ultimate Folder - Level 1Folding Points: 189791 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Months 2 Weeks 2 Days 8 h 44 m 57 sec
Reputation Power: 767
cool, thanks for trying M, will find some kind of work around

Reply With Quote
Reply

Viewing: ASP Free ForumsProgramming.NET Development > ASP.Net/VB.Net - Secure Files


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump





 Free IT White Papers!
 
Create the Optimal Architecture for your Critical Applications
Warburton's the largest independently owned bakery in the UK faced a number of difficult challenges in providing the most robust yet efficient IT infrastructure for their organization's success. IBM's services combined with their xSeries servers created the perfect platform for their SAP environment with sufficient flexibility, and did so in very time effective fashion.

 
Five Best Practices for Deploying a Successful Service-Oriented Architecture
This white paper describes the benefits you can expect with SOA, and how IBM can help take your business there.

 
Gartner Magic Quadrant for Application Delivery Controllers
Gartner summarizes its view on Application Delivery Controllers, evaluates strengths and weaknesses of solutions, and provides Magic Quadrant reporting for a quick comparison across all vendors. Learn from Gartner how you can benefit from an all-in-one device like Citrix NetScaler that delivers the highest levels of availability, performance and security.

 
Knowledge is Power
What you don't know can hurt you, and is likely costing you money and increasing your security risks during an era of scarce resources. This white paper proposes six key strategies that enterprise security managers can use to improve their network defense posture.

 
Rationalizing the Multi-Tool Environment
The rationalized multi-tool approach is flexible, scalable and cost effective. It provides the necessary input to the IT service management business processes. It preserves prior investments in monitoring tools, empowers technologists to select the best tools with which to do their jobs, and enhances effective response to incidents.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 8 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek