3 #define FILTERS_H_VERSION "$Id: filters.h,v 1.2 2001/05/20 01:21:20 jongfoster Exp $"
4 /*********************************************************************
6 * File : $Source: /cvsroot/ijbswa/current/filters.h,v $
8 * Purpose : Declares functions to parse/crunch headers and pages.
9 * Functions declared include:
10 * `acl_addr', `add_stats', `block_acl', `block_imageurl',
11 * `block_url', `url_permissions', `domaincmp', `dsplit',
12 * `filter_popups', `forward_url'
13 * `ij_untrusted_url', `intercept_url', `re_process_buffer',
14 * `show_proxy_args', and `trust_url'
16 * Copyright : Written by and Copyright (C) 2001 the SourceForge
17 * IJBSWA team. http://ijbswa.sourceforge.net
19 * Based on the Internet Junkbuster originally written
20 * by and Copyright (C) 1997 Anonymous Coders and
21 * Junkbusters Corporation. http://www.junkbusters.com
23 * This program is free software; you can redistribute it
24 * and/or modify it under the terms of the GNU General
25 * Public License as published by the Free Software
26 * Foundation; either version 2 of the License, or (at
27 * your option) any later version.
29 * This program is distributed in the hope that it will
30 * be useful, but WITHOUT ANY WARRANTY; without even the
31 * implied warranty of MERCHANTABILITY or FITNESS FOR A
32 * PARTICULAR PURPOSE. See the GNU General Public
33 * License for more details.
35 * The GNU General Public License should be included with
36 * this file. If not, you can view it at
37 * http://www.gnu.org/copyleft/gpl.html
38 * or write to the Free Software Foundation, Inc., 59
39 * Temple Place - Suite 330, Boston, MA 02111-1307, USA.
43 * Revision 1.2 2001/05/20 01:21:20 jongfoster
44 * Version 2.9.4 checkin.
45 * - Merged popupfile and cookiefile, and added control over PCRS
46 * filtering, in new "permissionsfile".
47 * - Implemented LOG_LEVEL_FATAL, so that if there is a configuration
48 * file error you now get a message box (in the Win32 GUI) rather
49 * than the program exiting with no explanation.
50 * - Made killpopup use the PCRS MIME-type checking and HTTP-header
52 * - Removed tabs from "config"
53 * - Moved duplicated url parsing code in "loaders.c" to a new funcition.
54 * - Bumped up version number.
56 * Revision 1.1.1.1 2001/05/15 13:58:52 oes
57 * Initial import of version 2.9.3 source tree
60 *********************************************************************/
70 extern int block_acl(struct access_control_addr *src, struct access_control_addr *dst, struct client_state *csp);
71 extern int acl_addr(char *aspec, struct access_control_addr *aca);
72 #endif /* def ACL_FILES */
74 extern char *block_url(struct http_request *http, struct client_state *csp);
76 extern char *trust_url(struct http_request *http, struct client_state *csp);
77 #endif /* def TRUST_FILES */
78 extern char *intercept_url(struct http_request *http, struct client_state *csp);
79 extern char *redirect_url(struct http_request *http, struct client_state *csp);
81 #if defined(DETECT_MSIE_IMAGES) || defined(USE_IMAGE_LIST)
82 extern int block_imageurl(struct http_request *http, struct client_state *csp);
83 #endif /* defined(DETECT_MSIE_IMAGES) || defined(USE_IMAGE_LIST) */
86 extern int block_imageurl_using_imagelist(struct http_request *http, struct client_state *csp);
87 #endif /* def USE_IMAGE_LIST */
89 extern int url_permissions(struct http_request *http, struct client_state *csp);
90 extern const struct gateway *forward_url(struct http_request *http, struct client_state *csp);
92 extern struct url_spec dsplit(char *domain);
93 extern int domaincmp(struct url_spec *pattern, struct url_spec *fqdn);
95 extern char *show_proxy_args(struct http_request *http, struct client_state *csp);
96 extern char *ijb_send_banner(struct http_request *http, struct client_state *csp);
99 extern char *ij_untrusted_url(struct http_request *http, struct client_state *csp);
100 #endif /* def TRUST_FILES */
103 extern char *add_stats(char *s);
104 #endif /* def STATISTICS */
107 extern void re_process_buffer(struct client_state *csp);
108 #endif /* def PCRS */
110 /* Revision control strings from this header and associated .c file */
111 extern const char filters_rcs[];
112 extern const char filters_h_rcs[];
118 #endif /* ndef _FILTERS_H */