Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: How do I prevent anybody from looking at the contents of my text files ?

by Anonymous Monk
on Feb 09, 2003 at 20:09 UTC ( [id://233945]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://233945]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-24 19:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found