Web Security 101

Before you put CGI programs on the World Wide Web, you need to know a few things. By putting a CGI program on a Web page, you are giving remote users (using Web browsers) limited access to your system. Using normal HTML documents, they can retrieve only static documents from your Web site. Using CGI programs, however, they're actually able to run programs on your Web server.

Knowing how to write safe and secure CGI programs will make you and the administrator of your Web server much happier. Writing such programs is not hard; you just need to follow a few simple precautions.

A Clear Link

When a Web browser retrieves a page from your Web server, the HTML is sent over a cleartext channel (see Figure 18.6). This means that as the ...

Get Sams Teach Yourself Perl in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.