Recipe 10.4 Blocking Proxied Requests to Certain Places


You want to use your proxy server as a content filter, forbidding requests to certain places.


Use ProxyBlock in the httpd.conf to deny access to particular sites:



This example forbids proxied requests to the sites listed. These arguments are substring matches; will also match, and an argument of example would match both.

If you want more fine-grained control of what content is requested through your proxy server, you may want to use something more sophisticated, such as Squid, which is more full-featured in that area.

See Also

  • The Squid proxy server, found at

Apache Cookbook
Apache Cookbook: Solutions and Examples for Apache Administrators
ISBN: 0596529945
EAN: 2147483647
Year: 2006
Pages: 215

Similar book on Amazon © 2008-2017.
If you may any questions please contact us: