Recipe 10.4 Blocking Proxied Requests to Certain Places

Problem

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

Solution

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

ProxyBlock forbiddensite.com www.competitor.com monster.com

Discussion

This example forbids proxied requests to the sites listed. These arguments are substring matches; example.com will also match www.example.com, 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 http://www.squid-cache.org/



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

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net