summaryrefslogtreecommitdiff
path: root/network/mod_hosts_access/README
diff options
context:
space:
mode:
authorMenno E. Duursma <druiloor@zonnet.nl>2010-05-11 22:54:55 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 22:54:55 +0200
commit986bdaf5584d4b3189255ca22c2434899aac70e8 (patch)
tree9b379ed33ae1f01175dad233ed16d1daa4b8c9c1 /network/mod_hosts_access/README
parent4559304ed9b8d0b39a57ce7a9154b09db8bfc222 (diff)
downloadslackbuilds-986bdaf5584d4b3189255ca22c2434899aac70e8.tar.gz
network/mod_hosts_access: Added to 12.1 repository
Diffstat (limited to 'network/mod_hosts_access/README')
-rw-r--r--network/mod_hosts_access/README39
1 files changed, 39 insertions, 0 deletions
diff --git a/network/mod_hosts_access/README b/network/mod_hosts_access/README
new file mode 100644
index 0000000000..2486db84ec
--- /dev/null
+++ b/network/mod_hosts_access/README
@@ -0,0 +1,39 @@
+mod_hosts_access
+
+This is a DSO (dynamically shared object) module for the Apache webserver
+that uses libwrap (TCP Wrapper) to check if the connecting hosts is allowed.
+
+This system works well with dynamic blocking scripts, such as DenyHosts, and
+configfile distribution systems, such as Cfengine. Especially if other blocking
+methods differ between hosts at a site (e.g. kernel-level firewalling means).
+
+At an appropriate place (i.e. where other modules are loaded similarly),
+add to /etc/httpd/httpd.conf following line:
+
+LoadModule hosts_access_module lib/httpd/modules/mod_hosts_access.so
+
+The /etc/hosts.{allow,deny} access control checking for the "httpd" service
+can now be enabled or disabled on a per directory basis, by adding HostsAccess
+directive to its declaration, e.g. again in /etc/httpd/httpd.conf:
+
+# First, we configure the "default" to be a very restrictive set of
+# permissions.
+#
+#<Directory />
+# HostsAccess On
+# Options FollowSymLinks
+# AllowOverride None
+#</Directory>
+
+To test, restart apache for it to load the module; edit /etc/hosts.allow
+adding a line like the following:
+
+httpd: localhost: deny
+
+Access from 'localhost' (127.0.0.1) should now be disallowed, thus requesting
+the index page should fail, to verify try:
+
+ lynx -dump localhost
+
+The same can be done in a .htaccess file if AllowOverride Limit has been set.
+