Click to See Complete Forum and Search --> : Use ASP to protect folder contents?


jmason50
11-26-2003, 11:55 PM
I'm using .asp with MS Access to protect my web pages. ie. only registered users can access online photos contained in a .asp page but...
I can't figure out how to protect the actual photos themselves being accessed by simply typing the URL (eg. www.site.com/photos/photo.jpg). Is this possible by using some kind of ASP magic, or do I need some other kind of security solution? I realise I can store the images inside the actual DB but I'd prefer to be able to protect the entire contents of online folders, not just .asp pages.

PeOfEo
11-27-2003, 12:25 AM
Do you have direct access to the server?

jmason50
11-27-2003, 12:36 AM
No, I'm on a shared hosting plan - http://www.crystaltech.com/plan1.htm

PeOfEo
11-27-2003, 12:41 AM
ewww. You are going to need to set the pass on the server and change the rights. if iis is using the windows security settings you are going to need to be right there or have remote access to the server to actually set this up. Also I was looking over your hosting plan... they support access, wew. if I were you I would go for something that gives you mssql server at that price. I have found rates very close to that with it installed :rolleyes: (They did not have as much disk space, but do you really need that much?)

jmason50
11-27-2003, 04:12 AM
I guess I could get them to set permissions on certain folders, as I don't have access to the server. Still, I was hoping there would be a way to do it that gives me more control over the whole process.
I don't know a thing about mssql server, and I do need the space for photos and files. I'll try to find a third party app that allows me to control the contents of my folders. Didn't think it would be such a problem to do this. Thanks for your help anyway :)