1 #ifndef PROJECT_H_INCLUDED
2 #define PROJECT_H_INCLUDED
3 #define PROJECT_H_VERSION "$Id: project.h,v 1.34 2001/10/07 15:45:25 oes Exp $"
4 /*********************************************************************
6 * File : $Source: /cvsroot/ijbswa/current/project.h,v $
8 * Purpose : Defines data structures which are widely used in the
9 * project. Does not define any variables or functions
10 * (though it does declare some macros).
12 * Copyright : Written by and Copyright (C) 2001 the SourceForge
13 * IJBSWA team. http://ijbswa.sourceforge.net
15 * Based on the Internet Junkbuster originally written
16 * by and Copyright (C) 1997 Anonymous Coders and
17 * Junkbusters Corporation. http://www.junkbusters.com
19 * This program is free software; you can redistribute it
20 * and/or modify it under the terms of the GNU General
21 * Public License as published by the Free Software
22 * Foundation; either version 2 of the License, or (at
23 * your option) any later version.
25 * This program is distributed in the hope that it will
26 * be useful, but WITHOUT ANY WARRANTY; without even the
27 * implied warranty of MERCHANTABILITY or FITNESS FOR A
28 * PARTICULAR PURPOSE. See the GNU General Public
29 * License for more details.
31 * The GNU General Public License should be included with
32 * this file. If not, you can view it at
33 * http://www.gnu.org/copyleft/gpl.html
34 * or write to the Free Software Foundation, Inc., 59
35 * Temple Place - Suite 330, Boston, MA 02111-1307, USA.
39 * Revision 1.34 2001/10/07 15:45:25 oes
40 * Added url member to struct http_request and commented all
45 * Added ACTION_DOWNGRADE and ACTION_NO_COMPRESSION
47 * Replaced struct client_state members rejected,
48 * force, active and toggled_on with "flags" bitmap.
50 * Added CSP_FLAG_MODIFIED and CSP_FLAG_CHUNKED
52 * Added buffer_limit to struct configuration_spec
54 * Revision 1.33 2001/09/20 13:30:08 steudten
56 * Make freez() more secure in case of: if (exp) { free(z) ; a=*z }
57 * Last case will set z to NULL in free(z) and thats bad..
59 * Revision 1.32 2001/09/16 23:02:51 jongfoster
62 * Revision 1.31 2001/09/16 13:20:29 jongfoster
63 * Rewrite of list library. Now has seperate header and list_entry
64 * structures. Also added a large sprinking of assert()s to the list
67 * Revision 1.30 2001/09/13 23:52:00 jongfoster
68 * Support for both static and dynamically generated CGI pages
70 * Revision 1.29 2001/09/13 23:29:43 jongfoster
71 * Defining FORWARD_SPEC_INITIALIZER
73 * Revision 1.28 2001/09/13 23:05:50 jongfoster
74 * Changing the string paramater to the header parsers a "const".
76 * Revision 1.27 2001/08/05 16:06:20 jongfoster
77 * Modifiying "struct map" so that there are now separate header and
78 * "map_entry" structures. This means that functions which modify a
79 * map no longer need to return a pointer to the modified map.
80 * Also, it no longer reverses the order of the entries (which may be
81 * important with some advanced template substitutions).
83 * Revision 1.26 2001/07/30 22:08:36 jongfoster
84 * Tidying up #defines:
85 * - All feature #defines are now of the form FEATURE_xxx
86 * - Permanently turned off WIN_GUI_EDIT
87 * - Permanently turned on WEBDAV and SPLIT_PROXY_ARGS
89 * Revision 1.25 2001/07/29 18:43:08 jongfoster
90 * Changing #ifdef _FILENAME_H to FILENAME_H_INCLUDED, to conform to
93 * Revision 1.24 2001/07/25 17:20:27 oes
94 * Introduced http->user_agent
96 * Revision 1.23 2001/07/18 12:32:23 oes
97 * - Added ACTION_STRING_DEANIMATE
98 * - moved #define freez from jcc.h to project.h
100 * Revision 1.22 2001/07/15 17:51:41 jongfoster
101 * Renaming #define STATIC to STATIC_PCRE
103 * Revision 1.21 2001/07/13 14:03:19 oes
104 * - Reorganized regex header inclusion and #defines to
105 * comply to the scheme in configure.in
106 * - Added csp->content_type and its CT_* keys
107 * - Added ACTION_DEANIMATE
108 * - Removed all #ifdef PCRS
110 * Revision 1.20 2001/06/29 21:45:41 oes
111 * Indentation, CRLF->LF, Tab-> Space
113 * Revision 1.19 2001/06/29 13:33:36 oes
114 * - Improved comments
115 * - Introduced http_request.host_ip_addr_str
116 * - Introduced http_response.head_length
117 * - Introduced config.my_ip_addr_str, config.my_hostname,
118 * config.admin_address and config.proxy_info_url
119 * - Removed config.proxy_args_header and config.proxy_args_trailer,
120 * renamed config.proxy_args_invocation to config.proxy_args
121 * - Removed HTML snipplets and GIFs
122 * - Removed logentry from cancelled commit
124 * Revision 1.18 2001/06/09 10:57:39 jongfoster
125 * Adding definition of BUFFER_SIZE.
126 * Changing struct cgi_dispatcher to use "const" strings.
128 * Revision 1.17 2001/06/07 23:15:09 jongfoster
129 * Merging ACL and forward files into config file.
130 * Moving struct gateway members into struct forward_spec
131 * Removing config->proxy_args_gateways
132 * Cosmetic: Adding a few comments
134 * Revision 1.16 2001/06/04 18:31:58 swa
135 * files are now prefixed with either `confdir' or `logdir'.
136 * `make redhat-dist' replaces both entries confdir and logdir
139 * Revision 1.15 2001/06/04 11:28:53 swa
140 * redirect did not work due to missing /
142 * Revision 1.14 2001/06/03 11:03:48 oes
144 * added struct http_response,
145 * changed struct interceptors to struct cgi_dispatcher,
146 * moved HTML stuff to cgi.h
148 * Revision 1.13 2001/06/01 20:05:36 jongfoster
149 * Support for +image-blocker{}: added ACTION_IMAGE_BLOCKER
150 * constant, and removed csp->tinygif.
152 * Revision 1.12 2001/06/01 18:49:17 jongfoster
153 * Replaced "list_share" with "list" - the tiny memory gain was not
154 * worth the extra complexity.
156 * Revision 1.11 2001/06/01 10:32:47 oes
157 * Added constants for anchoring selection bitmap
159 * Revision 1.10 2001/05/31 21:33:53 jongfoster
160 * Changes for new actions file, replacing permissionsfile
161 * and parts of the config file. Also added support for
164 * Revision 1.9 2001/05/31 17:32:31 oes
166 * - Enhanced domain part globbing with infix and prefix asterisk
167 * matching and optional unanchored operation
169 * Revision 1.8 2001/05/29 20:09:15 joergs
170 * HTTP_REDIRECT_TEMPLATE fixed.
172 * Revision 1.7 2001/05/29 09:50:24 jongfoster
173 * Unified blocklist/imagelist/actionslist.
174 * File format is still under discussion, but the internal changes
177 * Also modified interceptor behaviour:
178 * - We now intercept all URLs beginning with one of the following
179 * prefixes (and *only* these prefixes):
181 * * http://ijbswa.sf.net/config/
182 * * http://ijbswa.sourceforge.net/config/
183 * - New interceptors "home page" - go to http://i.j.b/ to see it.
184 * - Internal changes so that intercepted and fast redirect pages
185 * are not replaced with an image.
186 * - Interceptors now have the option to send a binary page direct
187 * to the client. (i.e. ijb-send-banner uses this)
188 * - Implemented show-url-info interceptor. (Which is why I needed
189 * the above interceptors changes - a typical URL is
190 * "http://i.j.b/show-url-info?url=www.somesite.com/banner.gif".
191 * The previous mechanism would not have intercepted that, and
192 * if it had been intercepted then it then it would have replaced
195 * Revision 1.6 2001/05/27 22:17:04 oes
197 * - re_process_buffer no longer writes the modified buffer
198 * to the client, which was very ugly. It now returns the
199 * buffer, which it is then written by chat.
201 * - content_length now adjusts the Content-Length: header
202 * for modified documents rather than crunch()ing it.
203 * (Length info in csp->content_length, which is 0 for
204 * unmodified documents)
206 * - For this to work, sed() is called twice when filtering.
208 * Revision 1.5 2001/05/26 00:28:36 jongfoster
209 * Automatic reloading of config file.
210 * Removed obsolete SIGHUP support (Unix) and Reload menu option (Win32).
211 * Most of the global variables have been moved to a new
212 * struct configuration_spec, accessed through csp->config->globalname
213 * Most of the globals remaining are used by the Win32 GUI.
215 * Revision 1.4 2001/05/22 18:46:04 oes
217 * - Enabled filtering banners by size rather than URL
218 * by adding patterns that replace all standard banner
219 * sizes with the "Junkbuster" gif to the re_filterfile
221 * - Enabled filtering WebBugs by providing a pattern
222 * which kills all 1x1 images
224 * - Added support for PCRE_UNGREEDY behaviour to pcrs,
225 * which is selected by the (nonstandard and therefore
226 * capital) letter 'U' in the option string.
227 * It causes the quantifiers to be ungreedy by default.
228 * Appending a ? turns back to greedy (!).
230 * - Added a new interceptor ijb-send-banner, which
231 * sends back the "Junkbuster" gif. Without imagelist or
232 * MSIE detection support, or if tinygif = 1, or the
233 * URL isn't recognized as an imageurl, a lame HTML
234 * explanation is sent instead.
236 * - Added new feature, which permits blocking remote
237 * script redirects and firing back a local redirect
239 * The feature is conditionally compiled, i.e. it
240 * can be disabled with --disable-fast-redirects,
241 * plus it must be activated by a "fast-redirects"
242 * line in the config file, has its own log level
243 * and of course wants to be displayed by show-proxy-args
244 * Note: Boy, all the #ifdefs in 1001 locations and
245 * all the fumbling with configure.in and acconfig.h
246 * were *way* more work than the feature itself :-(
248 * - Because a generic redirect template was needed for
249 * this, tinygif = 3 now uses the same.
251 * - Moved GIFs, and other static HTTP response templates
256 * - Removed some >400 CRs again (Jon, you really worked
259 * Revision 1.3 2001/05/20 01:21:20 jongfoster
260 * Version 2.9.4 checkin.
261 * - Merged popupfile and cookiefile, and added control over PCRS
262 * filtering, in new "actionsfile".
263 * - Implemented LOG_LEVEL_FATAL, so that if there is a configuration
264 * file error you now get a message box (in the Win32 GUI) rather
265 * than the program exiting with no explanation.
266 * - Made killpopup use the PCRS MIME-type checking and HTTP-header
268 * - Removed tabs from "config"
269 * - Moved duplicated url parsing code in "loaders.c" to a new funcition.
270 * - Bumped up version number.
272 * Revision 1.2 2001/05/17 23:01:01 oes
273 * - Cleaned CRLF's from the sources and related files
275 * Revision 1.1.1.1 2001/05/15 13:59:03 oes
276 * Initial import of version 2.9.3 source tree
279 *********************************************************************/
282 /* Declare struct FILE for vars and funcs. */
285 /* Need time_t for file_list */
289 * Include appropriate regular expression libraries.
290 * Note that pcrs and pcre (native) are needed for cgi
291 * and are included anyway.
294 #if defined(REGEX_PCRE) || defined (REGEX_GNU)
296 #endif /* defined(REGEX_PCRE) || defined (REGEX_GNU) */
310 #if defined(REGEX_PCRE)
312 # include "pcreposix.h"
314 # include <pcreposix.h>
316 #endif /* defined(REGEX_PCRE) */
318 #if defined(REGEX_GNU)
319 # include "gnu_regex.h"
324 #endif /* def AMIGA */
330 #define freez(X) { if(X) { free(X); X = NULL ; } }
332 #define BUFFER_SIZE 5000
336 /* Default IP and port to listen on */
337 #define HADDR_DEFAULT "127.0.0.1"
338 #define HADDR_PORT 8000
341 /* Forward defs for various structures */
343 /* Need this for struct client_state */
344 struct configuration_spec;
347 /* Generic linked list of strings */
352 struct list_entry *next;
357 struct list_entry *first;
358 struct list_entry *last;
362 /* A map from a string to another string */
368 struct map_entry *next;
373 struct map_entry *first;
374 struct map_entry *last;
380 char *cmd; /* Whole command line: method, URL, Version */
381 char *gpc; /* HTTP method: GET, POST, .. */
382 char *url; /* The URL */
383 char *ver; /* Protocol version */
384 int status; /* HTTP Status */
386 char *host; /* Host part of URL */
387 int port; /* Port of URL or 80 (default) */
388 char *path; /* Path of URL */
389 char *hostport; /* host[:port] */
390 int ssl; /* Flag if protocol is https */
392 char *host_ip_addr_str; /* String with dotted decimal representation
393 * of host's IP. NULL before connect_to() */
394 char *user_agent; /* Client's User-Agent: header value */
397 /* Response generated by CGI, blocker, or error handler */
400 char *status; /* HTTP status (string)*/
401 struct list headers[1]; /* List of header lines */
402 char *head; /* Formatted http response head */
403 int head_length; /* Length of http response head */
404 char *body; /* HTTP document body */
405 int content_length; /* Length of body, REQUIRED if binary body */
406 int is_static; /* Nonzero if the content will never change and
407 * should be cached by the broser (e.g. images) */
413 char *spec; /* The string which was parsed to produce this */
414 /* url_spec. Used for debugging or display only. */
416 /* Hostname matching: */
417 char *domain; /* Fully qalified domain name (FQDN) pattern. */
418 /* May contain "*". */
419 char *dbuf; /* Buffer with '\0'-delimited fqdn */
420 char **dvec; /* Domain ptr vector into dbuf */
421 int dcnt; /* How many domains in fqdn? */
422 int unanchored; /* Bitmap - flags are ANCHOR_LEFT and ANCHOR_RIGHT */
425 int port; /* The port number, or 0 to match all ports. */
428 char *path; /* The path prefix (if not using regex), or source */
430 int pathlen; /* ==strlen(path). Needed for prefix matching. */
432 regex_t *preg; /* Regex for matching path part */
436 #define URL_SPEC_INITIALIZER { NULL, NULL, NULL, NULL, 0, 0, 0, NULL, 0, NULL }
437 #else /* ifndef REGEX */
438 #define URL_SPEC_INITIALIZER { NULL, NULL, NULL, NULL, 0, 0, 0, NULL, 0 }
439 #endif /* ndef REGEX */
441 /* Constants for host part matching in URLs */
442 #define ANCHOR_LEFT 1
443 #define ANCHOR_RIGHT 2
455 #define IOB_PEEK(CSP) ((CSP->iob->cur > CSP->iob->eod) ? (CSP->iob->eod - CSP->iob->cur) : 0)
456 #define IOB_RESET(CSP) if(CSP->iob->buf) free(CSP->iob->buf); memset(CSP->iob, '\0', sizeof(CSP->iob));
458 /* Keys for csp->content_type */
459 #define CT_TEXT 1 /* Suitable for pcrs filtering */
460 #define CT_GIF 2 /* Suitable for GIF filtering */
461 #define CT_TABOO 3 /* DONT filter */
463 #define ACTION_MASK_ALL (~0U)
465 #define ACTION_MOST_COMPATIBLE 0x0000U
467 #define ACTION_BLOCK 0x0001U
468 #define ACTION_DEANIMATE 0x0002U
469 #define ACTION_DOWNGRADE 0x0004U
470 #define ACTION_FAST_REDIRECTS 0x0008U
471 #define ACTION_FILTER 0x0010U
472 #define ACTION_HIDE_FORWARDED 0x0020U
473 #define ACTION_HIDE_FROM 0x0040U
474 #define ACTION_HIDE_REFERER 0x0080U /* sic - follow HTTP, not English */
475 #define ACTION_HIDE_USER_AGENT 0x0100U
476 #define ACTION_IMAGE 0x0200U
477 #define ACTION_IMAGE_BLOCKER 0x0400U
478 #define ACTION_NO_COMPRESSION 0x0800U
479 #define ACTION_NO_COOKIE_READ 0x1000U
480 #define ACTION_NO_COOKIE_SET 0x2000U
481 #define ACTION_NO_POPUPS 0x4000U
482 #define ACTION_VANILLA_WAFER 0x8000U
485 #define ACTION_STRING_DEANIMATE 0
486 #define ACTION_STRING_FROM 1
487 #define ACTION_STRING_IMAGE_BLOCKER 2
488 #define ACTION_STRING_REFERER 3
489 #define ACTION_STRING_USER_AGENT 4
490 #define ACTION_STRING_COUNT 5
493 #define ACTION_MULTI_ADD_HEADER 0
494 #define ACTION_MULTI_WAFER 1
495 #define ACTION_MULTI_COUNT 2
498 * This structure contains a list of actions to apply to a URL.
499 * It only contains positive instructions - no "-" options.
500 * It is not used to store the actions list itself, only for
501 * url_actions() to return the current values.
503 struct current_action_spec
505 unsigned flags; /* a bit set to "1" = add action */
507 /* For those actions that require parameters: */
509 /* each entry is valid if & only if corresponding entry in "add" set. */
510 char * string[ACTION_STRING_COUNT];
513 struct list multi[ACTION_MULTI_COUNT][1];
518 * This structure contains a set of changes to actions.
519 * It can contain both positive and negative instructions.
520 * It is used to store an entry in the actions list.
524 unsigned mask; /* a bit set to "0" = remove action */
525 unsigned add; /* a bit set to "1" = add action */
527 /* For those actions that require parameters: */
529 /* each entry is valid if & only if corresponding entry in "add" set. */
530 char * string[ACTION_STRING_COUNT];
532 /* Strings to remove. */
533 struct list multi_remove[ACTION_MULTI_COUNT][1];
535 /* If nonzero, remove *all* strings. */
536 int multi_remove_all[ACTION_MULTI_COUNT];
539 struct list multi_add[ACTION_MULTI_COUNT][1];
543 * This structure is used to store the actions list.
545 * It contains a URL pattern, and the chages to the actions.
546 * It is a linked list.
550 struct url_spec url[1];
552 struct action_spec action[1];
554 struct url_actions * next;
558 /* Constants defining bitmask for csp->accept_types */
560 #ifdef FEATURE_IMAGE_DETECT_MSIE
562 /* MSIE detected by user-agent string */
563 #define ACCEPT_TYPE_IS_MSIE 0x0001
566 * *If* this is MSIE, it wants an image. (Or this is a shift-reload, or
567 * it's got an image from this URL before... yuck!)
568 * Only meaningful if ACCEPT_TYPE_IS_MSIE set
570 #define ACCEPT_TYPE_MSIE_IMAGE 0x0002
573 * *If* this is MSIE, it wants a HTML document.
574 * Only meaningful if ACCEPT_TYPE_IS_MSIE set
576 #define ACCEPT_TYPE_MSIE_HTML 0x0004
578 #endif /* def FEATURE_IMAGE_DETECT_MSIE */
581 * Flags for use in csp->flags
583 #define CSP_FLAG_ACTIVE 0x01 /* Set if this client is processing data.
584 * Cleared when the thread associated with
585 * this structure dies. */
586 #define CSP_FLAG_CHUNKED 0x02 /* Set if the server's reply is in "chunked"
587 * transfer encoding */
588 #define CSP_FLAG_FORCED 0x04 /* Set if this request was enforced, although
589 * it would normally have been blocked. */
590 #define CSP_FLAG_MODIFIED 0x08 /* Set if any modification to the body was done */
591 #define CSP_FLAG_REJECTED 0x10 /* Set if request was blocked. */
592 #define CSP_FLAG_TOGGLED_ON 0x20 /* Set if we are toggled on (FEATURE_TOGGLE) */
596 /* The proxy's configuration */
597 struct configuration_spec * config;
599 /* The actions to perform on the current request */
600 struct current_action_spec action[1];
602 /* socket to talk to client (web browser) */
605 /* socket to talk to server (web server or proxy) */
608 /* Multi-purpose flag container, see CSP_FLAG_* above */
609 unsigned short int flags;
612 * Client PC's IP address, as reported by the accept()_ function.
613 * Both as string and number
619 /* Our IP address and hostname, i.e. the IP address that
620 the client used to reach us, and the associated hostname,
623 char *my_ip_addr_str;
627 /* The referer in this request, if one was specified. */
629 #endif /* def FEATURE_TRUST */
631 #if defined(FEATURE_IMAGE_DETECT_MSIE)
632 /* Types the client will accept.
633 * Bitmask - see ACCEPT_TYPE_XXX constants.
636 #endif /* defined(FEATURE_IMAGE_DETECT_MSIE) */
638 /* The URL that was requested */
639 struct http_request http[1];
641 /* An I/O buffer used for buffering data read from the client */
644 /* List of all headers for this request */
645 struct list headers[1];
647 /* List of all cookies for this request */
648 struct list cookie_list[1];
650 /* MIME-Type key, see CT_* above */
651 unsigned short int content_type;
653 /* The "X-Forwarded-For:" header sent by the client */
656 /* files associated with this client */
657 struct file_list *actions_list;
659 struct file_list *rlist; /* pcrs job file */
660 size_t content_length; /* Length after content modification */
663 struct file_list *tlist; /* trustfile */
664 #endif /* def FEATURE_TRUST */
666 struct client_state *next;
674 char *(*parser)(const struct parsers *, const char *, struct client_state *);
677 struct cgi_dispatcher
681 int (*handler)(struct client_state *csp, struct http_response *rsp, struct map *parameters);
682 const char *description;
688 * this is a pointer to the data structures associated with the file.
689 * Read-only once the structure has been created.
693 /* Normally NULL. When we are finished with file (i.e. when we have
694 * loaded a new one), set to a pointer to an unloader function.
695 * Unloader will be called by sweep() (called from main loop) when
696 * all clients using this file are done. This prevents threading
699 void (*unloader)(void *);
701 /* Used internally by sweep(). Do not access from elsewhere. */
704 /* Following variables allow us to check if file has been changed.
705 * Read-only once the structure has been created.
710 /* Pointer to next entry in the linked list of all "file_list"s.
711 * This linked list is so that sweep() can navigate it.
712 * Since sweep() can remove items from the list, we must be careful
713 * to only access this value from main thread (when we know sweep
716 struct file_list *next;
723 struct url_spec url[1];
725 struct block_spec *next;
727 #endif /* def FEATURE_TRUST */
730 #define SOCKS_NONE 0 /* Don't use a SOCKS server */
731 #define SOCKS_4 40 /* original SOCKS 4 protocol */
732 #define SOCKS_4A 41 /* as modified for hosts w/o external DNS */
736 struct url_spec url[1];
738 /* Connection type - must be a SOCKS_xxx constant */
745 /* Parent HTTP proxy */
749 /* For the linked list */
750 struct forward_spec *next;
752 #define FORWARD_SPEC_INITIALIZER { { URL_SPEC_INITIALIZER }, 0, NULL, 0, NULL, 0, NULL }
755 struct re_filterfile_spec
759 struct list patterns[1];
764 #define ACL_PERMIT 1 /* accept connection request */
765 #define ACL_DENY 2 /* reject connection request */
767 struct access_control_addr
774 struct access_control_list
776 struct access_control_addr src[1];
777 struct access_control_addr dst[1];
780 struct access_control_list *next;
782 #endif /* def FEATURE_ACL */
785 /* Maximum number of loaders (actions, re_filter, ...) */
789 * Data loaded from the configuration file.
791 * (Anomaly: toggle is still handled through a global, not this structure)
793 struct configuration_spec
802 const char *actions_file;
804 /* The administrator's email address */
807 /* A URL with info on this proxy */
808 char *proxy_info_url;
810 const char *re_filterfile;
812 #ifdef FEATURE_COOKIE_JAR
813 const char * jarfile;
815 #endif /* def FEATURE_COOKIE_JAR */
818 * Port and IP to bind to.
819 * Defaults to HADDR_DEFAULT:HADDR_PORT == 127.0.0.1:8000
824 /* Size limit for IOB */
828 const char * trustfile;
830 struct list trust_info[1];
831 struct url_spec *trust_list[64];
832 #endif /* def FEATURE_TRUST */
835 struct access_control_list *acl;
836 #endif /* def FEATURE_ACL */
838 struct forward_spec *forward;
840 /* All options from the config file, HTML-formatted */
843 /* the configuration file object. */
844 struct file_list *config_file_list;
846 /* List of loaders */
847 int (*loaders[NLOADERS])(struct client_state *);
849 /* bool, nonzero if we need to bind() to the new port */
854 #define SZ(X) (sizeof(X) / sizeof(*X))
856 #ifdef FEATURE_FORCE_LOAD
857 #define FORCE_PREFIX "/IJB-FORCE-LOAD"
858 #endif /* def FEATURE_FORCE_LOAD */
861 #define HOME_PAGE_URL "http://ijbswa.sourceforge.net"
862 #define REDIRECT_URL HOME_PAGE_URL "/redirect.php?v=" VERSION "&to="
863 #define CGI_PREFIX_HOST "i.j.b"
866 static const char CSUCCEED[] =
867 "HTTP/1.0 200 Connection established\n"
868 "Proxy-Agent: IJ/" VERSION "\n\n";
870 static const char CHEADER[] =
871 "HTTP/1.0 400 Invalid header received from browser\n\n";
877 #endif /* ndef PROJECT_H_INCLUDED */