COP3832, Assignment 3

Due 11/7 at the start of class.

You may NOT use CGI.pm for this assignment.

Upload the following files and hand in printouts of each:

  1. access.conf
  2. language.cgi
  3. image.cgi
  4. validate.cgi

Create a subdirectory of hw that is named content. Create a file in the hw directory with the name .3832access containing the following. You may also add your current ipaddress to the allow from list. However, each time you finish working on your file, be sure to have only my two ipaddresses on the line. You can find out your current ipaddress by running my ipaddress script. Your ipaddress will change each time you log onto the web. Set the permissions for .3832access to 600.

<limit GET POST>
order deny,allow
deny from all
allow from 131.94.129.42 131.94.125.142
</limit>

Create eight files in the content directory

Allow language negotiation

Create a script that will have the same effect as language negotiation. However, the script takes care of all the details, it will not use the server's language negotiation abilities. Name the script language.cgi.

Create a script that will display one of the following images depending on the browser that is used to reference the page. Name the script image.cgi.

Create a script that contains a form and validates the fields as described below. Do not use JavaScript to validate, use server side scripting with Perl. Name the script validate.cgi.

Create a file named hw4.html in your hw directory on your server.