Cgi Written In C - M86 Security M86 User Manual

Web filtering and reporting suite
Hide thumbs Also See for M86:
Table of Contents

Advertisement

print "<body>\n";
print "<form method=post name=block>\n";
print "<input type=hidden name=\"SITE\"
value=\"_BLOCK_SITE_\">\n";
print "<input type=hidden name=\"IP\" value=\"$ip\">\n";
print "<input type=hidden name=\"URL\" value=\"$url\">\n";
print "<input type=hidden name=\"CAT\" value=\"$cat\">\n";
print "<input type=hidden name=\"USER\" value=\"$user\">\n";
print "<input type=hidden name=\"STEP\" value=\"STEP2\">\n";
print "<br>Web Filter Customized Block Page (CGI written with Perl
using Java Script to post form data)<br>\n";
print "URL: $url<br>\n";
print "IP: $ip<br>\n";
print "CAT: $cat<br>\n";
print "USER: $user<br>\n";
print "<br>For further options, <a
href=\"javascript:do_options()\">click here</a><br>\n";
print "</form>";
print "</body>\n";
print "</html>\n";

CGI written in C

/*
* cusc_block.c
* Description: sample C source code of CGI for customized block page
* Replace <Web Filter IP> with real IP and recompile before using
* Revision: 1
* Date: 03/08/2004
*/
#include <stdio.h>
struct {
} entries[20];
char szIP[16];
char szURL[1024];
char szUserName[1024];
char szCategory[8];
/*function prototypes*/
M86 S
U
G
ECURITY
SER
UIDE
char *name;
char *val;
W
F
A
EB
ILTER
PPENDICES
S
A
B
ECTION
PPENDIX
445

Advertisement

Table of Contents
loading

Table of Contents