Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 host.example.org?

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

share|improve this question

1 Answer 1

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

 
discard

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.