|
-
Jun 22nd, 2007, 10:07 AM
#1
Thread Starter
Frenzied Member
How to restrict a text file on web server
Hello everybody,
I have a text file in my website folder and I want to protect that text file so that nobody can view the content of the text file just like web.config doesn't show up when directly write the URL of the file.
Thanks.
-
Jun 26th, 2007, 02:32 PM
#2
I wonder how many charact
Re: How to restrict a text file on web server
 Originally Posted by usamaalam
Hello everybody,
I have a text file in my website folder and I want to protect that text file so that nobody can view the content of the text file just like web.config doesn't show up when directly write the URL of the file.
Thanks.
Easy: rename it mytextfile.config
Just be sure to never rename your web.config file to web.config.bak. That won't be filtered out and will be downloadable. If you have connection settings in there... you will be sorry.
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
|