#
# Makefile for the Harvest Object Cache server
#
-# $Id: Makefile.in,v 1.8 1996/03/25 19:01:04 wessels Exp $
+# $Id: Makefile.in,v 1.9 1996/03/26 21:58:40 wessels Exp $
#
# Uncomment and customize the following to suit your needs:
#
PROGS = cached
UTILS = client dnsserver ftpget
CGIPROGS = cachemgr.cgi
-OBJS = cached_error.o \
+OBJS = blocklist.o cached_error.o \
comm.o cache_cf.o debug.o disk.o dynamic_array.o \
fdstat.o filemap.o ftp.o gopher.o hash.o \
http.o icp.o ipcache.o mime.o neighbors.o objcache.o \
-/* $Id: cache_cf.cc,v 1.3 1996/03/26 05:14:46 wessels Exp $ */
+/* $Id: cache_cf.cc,v 1.4 1996/03/26 21:58:41 wessels Exp $ */
#include "config.h"
#include <stdio.h>
addToStopList(&bind_addr_list, token);
}
+void parseBlockListLine(line_in)
+ char *line_in;
+{
+ char *token;
+ token = strtok(NULL, w_space);
+ if (token == (char *) NULL)
+ return;
+ blockAddToList(token);
+}
+
void parseLocalDomainLine(line_in)
char *line_in;
{
else if (!strcmp(token, "ttl_pattern"))
parseTTLPattern(line_in);
+ /* Parse a blocklist line */
+ else if (!strcmp(token, "blocklist"))
+ parseBlockListLine(line_in);
+
/* Parse a negative_ttl line */
else if (!strcmp(token, "negative_ttl"))
parseNegativeLine(line_in);
-/* $Id: errorpage.cc,v 1.1 1996/03/26 05:20:47 wessels Exp $ */
+/* $Id: errorpage.cc,v 1.2 1996/03/26 21:58:42 wessels Exp $ */
#include "config.h"
#include <strings.h>
{"ERR_DISK_IO",
"Cache Disk I/O Failure",
"The system disk is out of space or failing."},
+ {"ERR_URL_BLOCKED",
+ "Access Denied",
+ "You are not allowed to access this URL."},
{"ERR_MAX"
"",
""}