APPENDICES SECTION APPENDIX C

{

printf("<html>\n");

printf("<head>\n");

printf("<script language=\"JavaScript\">\n"); printf("function do_options()\n"); printf("{\n"); printf("document.block.action=\"http://<ProxyBlocker IP>:81/

cgi/

block.cgi\"\n");

printf("document.block.submit()\n");

printf("}\n");

printf("</script>\n");

printf("</head>\n");

printf("<form method=post name=block >\n"); printf("<input type=hidden name=\"SITE\"

value=\"_BLOCK_SITE_\">\n");

printf("<input type=hidden name=\"IP\" value=\"%s\">\n", szIP); printf("<input type=hidden name=\"URL\" value=\"%s\">\n",

szURL);

printf("<input type=hidden name=\"CAT\" value=\"%s\">\n", szCategory);

printf("<input type=hidden name=\"USER\" value=\"%s\">\n", szUserName);

printf("<input type=hidden name=\"STEP\" value=\"STEP2\">\n");

printf("<br>ProxyBlocker Customized Block Page (CGI written with C

using Java Script to post form data)<br>\n");

printf("URL: %s<br>\n", szURL);

printf("IP: %s<br>\n", szIP);

printf("CAT: %s<br>\n", szCategory);

printf("USER: %s<br>\n", szUserName);

printf("<br>For further options, <a href=\"javascript:do_options()\">click here</a><br>\n");

printf("</form>\n");

printf("</body>\n");

printf("</html>\n");

}

/* functions to get the CGI parameters */ void unescape_url(char *url)

{

register int x,y;

for(x=0,y=0;url[y];++x,++y)

8E6 TECHNOLOGIES, PROXYBLOCKER USER GUIDE

419

Page 433
Image 433
8e6 Technologies ProxyBlocker manual 419