/******************************** * * * censor.h * Header file for control program for CGI version of * censorship avoidance proof of concept * * This program has been compiled and run under * Windows 2000 and FreeBSD 4.4 * *******************************/ #ifndef VOA_REDIRECT_H #define VOA_REDIRECT_H #include #include #include #include /*#define WIN32_LEAN_AND_MEAN /* comment out if running on UNIX */ #define DO_DEBUG 0 #ifdef WIN32_LEAN_AND_MEAN #include #else /* UNIX */ #include #include #include #include #endif #define PORT 80 #define HOSTSIZE 100 #define BUFSIZE 65536 /*change this to be the location of your cgi program on your machine! */ char g_chrarrRequestRoot[] = "http://www.sol-system.com/cgi-bin/censor/censor.cgi"; struct HOSTINFO{ char name[HOSTSIZE]; int show; /* flag to indicate if it shows up on main menu */ int id; }; /* This is the list of authorized sites available for browsing. If you add to this, be sure to increment numbers! */ struct HOSTINFO m_HostArray[] = { {"www.voa.gov", 1, 0}, {"www.washingtonpost.com", 1, 1}, {"www.cnn.com", 1, 2}, {"i.cnn.net", 0, 3}, /* appears to be where CNN stores its images */ {"www.sol-system.com", 1, 4}, {"LAST", 0, -1}, }; #endif