|
-
Jul 14th, 2003, 05:12 PM
#1
permissoin question-iis
I have a txt file in one of my site's directories. I want my ASP program to be able to read that file but I don't want the users to be able to read it if they type the URL.... what should I do?
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Jul 15th, 2003, 11:56 AM
#2
PowerPoster
Deny anonymous access to the directory.
-
Jul 15th, 2003, 04:14 PM
#3
Originally posted by Lethal
Deny anonymous access to the directory.
well! my asp.net pages are in the same directory I want people to be able to see my aspx pages so I dont wanna mess with the directory permissions
as for the file permissions, I denied anonymous access to it, but the problem was that asp.net couldnt access it that way 
so I guess it's not possible... I wanted asp.net to be able to access the TXT file but I didnt want the users to be able to access it
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Jul 18th, 2003, 07:02 AM
#4
Junior Member
You should be able to accomplish this using the web.config settings. Do a search for using a "location" setting. Basically it involves setting specific permissions to a path.
-
Jul 18th, 2003, 09:20 AM
#5
PowerPoster
Or simply use the .config extension for the file, because IIS will not serve these types of files for client requests.
-
Jul 18th, 2003, 10:18 AM
#6
Frenzied Member
I dont remember too well but I read an article that said that the web.config fileo only protects aspx pages, so I dont think web.config would protect a txt file. Do what Lethal said and deny anonymous access but give the asp.net process access to it.
-
Jul 18th, 2003, 11:53 AM
#7
PowerPoster
Originally posted by DevGrp
I dont remember too well but I read an article that said that the web.config fileo only protects aspx pages, so I dont think web.config would protect a txt file.
Yeah, I think I read something along those lines as well. Just do what lethal said...
-
Jul 18th, 2003, 12:20 PM
#8
PowerPoster
I have never done it, but can't you just add the text file to its own folder, and add a web.config file in that folder denying access?
-
Jul 18th, 2003, 12:33 PM
#9
PowerPoster
Originally posted by hellswraith
I have never done it, but can't you just add the text file to its own folder, and add a web.config file in that folder denying access?
That is what DevGrp is referring 2. He thinks it only works for aspx pages (i think i read this somewhere also)
-
Jul 20th, 2003, 12:57 PM
#10
yay gay
put the text in another directory and dont give it any kind of user access?
\m/  \m/
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
|