in reply to How do I prevent anybody from looking at the contents of my text files ?

Add the ".cgi" extension to your text files. If a visitor attempts to view it from a web broswer, they should get a 500.
  • Comment on Re: How do I prevent anybody from looking at the contents of my text files ?

Replies are listed 'Best First'.
Re: Answer: How do I prevent anybody from looking at the contents of my text files ?
by mowgli (Friar) on Feb 10, 2003 at 10:19 UTC

    Obviously, this also depends on the configuration of your web server. With apache, a line like

    AddHandler cgi-script .cgi
    

    in to your httpd.conf will do the Right Thing (after you restart apache).

    --
    mowgli