|
-
Feb 24th, 2004, 09:59 AM
#1
Thread Starter
Frenzied Member
Blocking access to image directories
I would like to be able to refuse access to some directories that contain images but still allow access to these directories for scripts via file i/o.
In other words if you type http://192.168.14.30/design or http://192.168.14.30/design/example.gif you will get permission denied.
However if a script was to access this url it would be allowed to view the directory contents with GetDirectories and GetFiles and even allow the download of files by a binary stream to the browser.
Help would be appreciated as this is my first ASP.NET project. By the way I'm using C#.
DJ
-
Feb 24th, 2004, 11:29 AM
#2
PowerPoster
Not sure how much experience you have with ASP.NET, but you could write your own HttpHandler that will handle all requests for your image files and deny or allow access based on the requirements.
-
Feb 24th, 2004, 11:47 AM
#3
Thread Starter
Frenzied Member
Not enough to know what you are on about Could you give me some pointers?
DJ
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|