This script is for Slackware 13.0 only and may be outdated.

SlackBuilds Repository

13.0 > Network > mod_hosts_access (1.1.0)

mod_hosts_access

This is a DSO (dynamically shared object) module for the Apache webserver
that uses libwrap (TCP Wrappers) 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).

You'll need to add the following line to /etc/httpd/httpd.conf:
Include /etc/httpd/mod_hosts_access.conf

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.

Maintained by: Menno E. Duursma
Keywords: security,apache
ChangeLog: mod_hosts_access

Homepage:
http://www.klomp.org/mod_hosts_access/

Source Downloads:
mod_hosts_access-1.1.0.tar.gz (2e4fd22e778c8d98d433344a46421eb7)

Download SlackBuild:
mod_hosts_access.tar.gz
mod_hosts_access.tar.gz.asc (FAQ)

(the SlackBuild does not include the source)

Validated for Slackware 13.0

See our HOWTO for instructions on how to use the contents of this repository.

Access to the repository is available via:
ftp git cgit http rsync

© 2006-2024 SlackBuilds.org Project. All rights reserved.
Slackware® is a registered trademark of Patrick Volkerding
Linux® is a registered trademark of Linus Torvalds