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

Is it possible to block website accessing based on HTML's "header words" by squid proxy on RHEL 5 ?

  • If possible please tell as detail.
share|improve this question

What do you mean by 'header words'? Do you mean something win the HTML body or the HTTP headers?

Anyway if you want to block something in the body of the web page for no cost you probably should be looking at DansGuardian.

share|improve this answer
i mean HTML body 'header words' – Kumar Oct 11 '10 at 5:51
In that case, definitley look at DG, or at one of the commercial content (rather than URL) filters available such as Smoothwall ( [disclaimer: I work at smoothwall] – Tom Newton Aug 16 '11 at 9:42

You can use Squids ACLs (Access Control Lists) to limit Access to certain pages - based on different criteria. Sounds like you are looking for a "rep_header" check.

"rep_header: regular expression pattern matching on a reply header content..."

See for more options. But setting up ACLs using regex can be quite tricky. Maybe you can google around.

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.