forward index back LITA Regional Institute: Proxy Web Servers and Authentication
San Antonio, TX    February 22, 2001

Proxy Web Servers and Authentication > Proxies for Filtering

Setting up Apache to block requests to certain sites

ProxyBlock
Syntax
ProxyBlock <word/host/domain list>
Compatibility
ProxyBlock is only available in Apache 1.2 and later.

The ProxyBlock directive specifies a list of words, hosts and/or domains, separated by spaces. HTTP, HTTPS, and FTP document requests to sites whose names contain matched words, hosts or domains are blocked by the proxy server. The proxy module will also attempt to determine IP addresses of list items which may be hostnames during startup, and cache them for match test as well. Example:

  ProxyBlock joes-garage.com some-host.co.uk rocky.wotsamattau.edu

'rocky.wotsamattau.edu' would also be matched if referenced by IP address.

Adapted from Apache Module mod_proxy documentation.