• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 21. JavaScript Project: Setting ... > Debugging and Troubleshooting Script...

Debugging and Troubleshooting Script Problems

Thwarting CGI Directory Listings

It's possible for CGI programs to access and list the available files in other directories on the server. How do I fix this gaping security hole?

I mentioned earlier in the chapter that for these password-as-page-name scripts to be secure, you must include a default file (usually index.html or index.htm) in the same directory. That way, the server won't show a list of the directory's files if the user doesn't specify a filename.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint