
Vulnerable CGI Scripts • Chapter 4 165
Q: Which is the best language for writing CGI scripts/programs?
A: There is no one “best” language for writing CGI scripts and pro-
grams, although programmers who use a specific language will argue
this. Shell scripts are generally used for small programs where secu-
rity isn’t an issue, while larger, more complex programs will use lan-
guages such as C, C++, or Visual Basic.The most common language
for writing CGI scripts is Perl.
Q: When I’m writing my CGI program, do I need to worry about the
type of browser a user is using to visit my site?
A: Generally, no. CGI programs run on the server side, so no code actu- ...