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

We have contentregexplist file where we can write all substitutions like "source regex"->"dest string"

And they ALL run for each page. Is it possible somehow to define a domain name(s) for which (only for 1 domain! not every page) some regexps should be looked for?

To be clear:
How to replace "Google"->"garbage" in page source only for host

May be other content filtering system can do this? Then which one?

share|improve this question
up vote 0 down vote accepted

No, dansguardian cannot do this with content modification rules. You might be able to write your own squid helper to do it.

I know Smoothwall is able to 'target' content mod rules (disclaimer: I work there) with their latest content filter - which is based on dg-like principles (The Dan is our CTO) but is a complete rewrite.

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.