From: jongfoster <jongfoster@users.sourceforge.net>
Date: Sat, 22 Sep 2001 14:55:41 +0000 (+0000)
Subject: Displaying an error message whenever the config directory is read.
X-Git-Tag: v_2_9_9~48
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/faq/@default-cgi@/@default-cgi@toggle?a=commitdiff_plain;h=3406be3c7689cff97aa0c66323ad98f10190e98c;p=privoxy.git

Displaying an error message whenever the config directory is read.
---

diff --git a/doc/webserver/config/.htaccess b/doc/webserver/config/.htaccess
new file mode 100644
index 00000000..934ac19c
--- /dev/null
+++ b/doc/webserver/config/.htaccess
@@ -0,0 +1,28 @@
+# http://ijbswa.sourceforge.net/config/.htaccess
+#
+# By Jon Foster
+#
+# Redirects any request for any file in this directory tree
+# to an error page.
+#
+# Uses Apache's mod_rewrite
+# See http://httpd.apache.org/docs/mod/mod_rewrite.html
+#
+
+# Enable mod_rewrite
+RewriteEngine on
+
+# we are reached via /config/ prefix
+RewriteBase   /config/
+
+# The only file which really exists is index.php - allow this
+RewriteRule  index.php - [L]
+
+# Silently redirect the config dir to index.php
+RewriteRule  ^$      index.php [L]
+
+# anything else gets redirected to the config dir, and we update
+# the browser's location bar.
+RewriteRule  ^(.*)$  /config/  [R]
+
+
diff --git a/doc/webserver/config/index.php b/doc/webserver/config/index.php
new file mode 100644
index 00000000..9be04627
--- /dev/null
+++ b/doc/webserver/config/index.php
@@ -0,0 +1,19 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+"http://www.w3.org/TR/html4/loose.dtd">
+<html><head>
+<title>Internet JunkBuster not running</title>
+</head>
+
+<body>
+
+<h1>JunkBuster isn't working</h1>
+
+<p>If you can see this page, it means that you aren't using the
+JunkBuster
+proxy. &nbsp; Please check your browser settings.</p>
+
+<p><a href="http://ijbswa.sourceforge.net/">Junkbuster home page</a></p>
+
+</body>
+</html>
+