1 /* config.h.win - Microsoft Visual C++ version of config.h */
4 /*********************************************************************
6 * File : $Source: /cvsroot/ijbswa/current/config.h.win,v $
8 * Purpose : This file should be the first thing included in every
9 * .c file. (Before even system headers). It contains
10 * #define statements for various features. It was
11 * introduced because the compile command line started
12 * getting ludicrously long with feature defines.
14 * Copyright : Written by and Copyright (C) 2001 the SourceForge
15 * IJBSWA team. http://ijbswa.sourceforge.net
17 * Based on the Internet Junkbuster originally written
18 * by and Copyright (C) 1997 Anonymous Coders and
19 * Junkbusters Corporation. http://www.junkbusters.com
21 * This program is free software; you can redistribute it
22 * and/or modify it under the terms of the GNU General
23 * Public License as published by the Free Software
24 * Foundation; either version 2 of the License, or (at
25 * your option) any later version.
27 * This program is distributed in the hope that it will
28 * be useful, but WITHOUT ANY WARRANTY; without even the
29 * implied warranty of MERCHANTABILITY or FITNESS FOR A
30 * PARTICULAR PURPOSE. See the GNU General Public
31 * License for more details.
33 * The GNU General Public License should be included with
34 * this file. If not, you can view it at
35 * http://www.gnu.org/copyleft/gpl.html
36 * or write to the Free Software Foundation, Inc., 59
37 * Temple Place - Suite 330, Boston, MA 02111-1307, USA.
40 * $Log: config.h.win,v $
41 * Revision 1.2 2001/06/29 13:26:27 oes
42 * Introduced #define CODE_STATUS
44 * Revision 1.1 2001/06/01 17:56:07 jongfoster
45 * Removing generated files config.h and pcre/chartables.c
46 * Now use a custom build step to copy config.h.win to config.h
47 * New VC++ project pcre/vc_dftables.dsp will generate pcre/chartables.c
48 * Also adding the new files list.[ch], actions.[ch] to the console build.
50 * Revision 1.6 2001/05/29 09:50:24 jongfoster
51 * Unified blocklist/imagelist/permissionslist.
52 * File format is still under discussion, but the internal changes
55 * Also modified interceptor behaviour:
56 * - We now intercept all URLs beginning with one of the following
57 * prefixes (and *only* these prefixes):
59 * * http://ijbswa.sf.net/config/
60 * * http://ijbswa.sourceforge.net/config/
61 * - New interceptors "home page" - go to http://i.j.b/ to see it.
62 * - Internal changes so that intercepted and fast redirect pages
63 * are not replaced with an image.
64 * - Interceptors now have the option to send a binary page direct
65 * to the client. (i.e. ijb-send-banner uses this)
66 * - Implemented show-url-info interceptor. (Which is why I needed
67 * the above interceptors changes - a typical URL is
68 * "http://i.j.b/show-url-info?url=www.somesite.com/banner.gif".
69 * The previous mechanism would not have intercepted that, and
70 * if it had been intercepted then it then it would have replaced
73 * Revision 1.5 2001/05/26 00:28:36 jongfoster
74 * Automatic reloading of config file.
75 * Removed obsolete SIGHUP support (Unix) and Reload menu option (Win32).
76 * Most of the global variables have been moved to a new
77 * struct configuration_spec, accessed through csp->config->globalname
78 * Most of the globals remaining are used by the Win32 GUI.
80 * Revision 1.4 2001/05/25 22:17:28 jongfoster
81 * Resurrecting these files which are required for the MS Visual C++
84 * Revision 1.2 2001/05/20 01:21:20 jongfoster
85 * Version 2.9.4 checkin.
86 * - Merged popupfile and cookiefile, and added control over PCRS
87 * filtering, in new "permissionsfile".
88 * - Implemented LOG_LEVEL_FATAL, so that if there is a configuration
89 * file error you now get a message box (in the Win32 GUI) rather
90 * than the program exiting with no explanation.
91 * - Made killpopup use the PCRS MIME-type checking and HTTP-header
93 * - Removed tabs from "config"
94 * - Moved duplicated url parsing code in "loaders.c" to a new funcition.
95 * - Bumped up version number.
97 * Revision 1.1.1.1 2001/05/15 13:58:49 oes
98 * Initial import of version 2.9.3 source tree
101 *********************************************************************/
104 /* Define to empty if the keyword does not work. */
107 /* Define to `unsigned' if <sys/types.h> doesn't define. */
110 /* Define if you have the ANSI C header files. */
111 #define STDC_HEADERS 1
114 * Version number - Major (X._._)
116 #define VERSION_MAJOR 2
119 * Version number - Minor (_.X._)
121 #define VERSION_MINOR 9
124 * Version number - Point (_._.X)
126 #define VERSION_POINT 5
129 * Version number, as a string
131 #define VERSION "2.9.5"
134 * Status of the code: alpha, beta or stable
136 #define CODE_STATUS "alpha"
139 * Regular expression matching for URLs. (Highly recommended). If this is
140 * not defined then you can ony use prefix matching.
145 * Allow JunkBuster to be "disabled" so it is just a normal non-blocking
146 * non-anonymizing proxy. This is useful if you're trying to access a
147 * blocked or broken site - just change the setting in the config file
148 * and send a SIGHUP (UN*X), or use the handy "Disable" menu option (Windows
154 * Enables arbitrary content modification regexps
159 * If a stream is compressed via gzip (Netscape specific I think), then
160 * it cannot be modified with Perl regexps. This forces it to be
166 * Enables statistics function.
171 * Bypass filtering for 1 page only
176 * Locally redirect remote script-redirect URLs
178 #define FAST_REDIRECTS 1
181 * Split the show-proxy-args page into a page for each config file.
183 #define SPLIT_PROXY_ARGS 1
186 * Kills JavaScript popups - window.open, onunload, etc.
191 * Support for webDAV - e.g. so Microsoft Outlook can access HotMail e-mail
196 * Detect image requests automatically for MSIE. Will fall back to
197 * other image-detection methods (i.e. "+image" permission) for other
200 * You must also define IMAGE_BLOCKING to use this feature.
202 * It detects the following header pair as an image request:
204 * User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
207 * And the following as a HTML request:
209 * User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
210 * Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, * / *
212 * And no, I haven't got that backwards - IE is being wierd.
215 * 1) If you press shift-reload on a blocked HTML page, you get
216 * the image "blocked" page, not the HTML "blocked" page.
217 * 2) Once an image "blocked" page has been sent, viewing it
218 * in it's own browser window *should* bring up the HTML
219 * "blocked" page, but it doesn't. You need to clear the
220 * browser cache to get the HTML version again.
222 * These limitations are due to IE making inconsistent choices
223 * about which "Accept:" header to send.
225 #define DETECT_MSIE_IMAGES 1
228 * Allow blocking using images as well as HTML.
229 * If you do not define this then everything is blocked as HTML.
231 * Note that this is required if you want to use DETECT_MSIE_IMAGES.
233 #define IMAGE_BLOCKING 1
236 * Allows the use of ACL files to control access to the proxy by IP address.
241 * Allows the use of trust files.
243 #define TRUST_FILES 1
246 * Allows the use of jar files to capture cookies.
251 * Use PCRE rather than GNU Regex
255 /* Define if you have the bcopy function. */
258 /* Define if you have the memmove function. */
259 #define HAVE_MEMMOVE 1
261 /* Define if you have the strerror function. */
262 #define HAVE_STRERROR 1
264 #endif /* _CONFIG_H */