Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am interested if Apache's mod_proxy can be configured to filter the content sent through it. For example, if a user makes a request to site A then send request X to the server otherwise send an unmodified request.

For example:

Client ------> Proxy -------> Server

The filter would be written as a script that gets invoked by the proxy and would also control what kind of response would go on to the server.

Is this even possible? If so, how is this called?

Thank you.

share|improve this question

Allowing or blocking sites can be handled in a ProxyBlock..


..or in a <Proxy>..

    Order allow,deny
    Deny from all

..or in a <ProxyMatch>.

<ProxyMatch http://(bad|worse)\-site\.com/.*>
    Order allow,deny
    Deny from all

For what you're looking for, an outside script handling the authorizations, there is no built-in functionality; you'd probably need a custom module.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.