Results 1 to 2 of 2

Thread: How to restrict a text file on web server

  1. #1

    Thread Starter
    Frenzied Member usamaalam's Avatar
    Join Date
    Nov 2002
    Location
    Karachi
    Posts
    1,308

    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.

  2. #2
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704

    Re: How to restrict a text file on web server

    Quote 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
  •  



Click Here to Expand Forum to Full Width