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

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

2 Answers 2

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 (www.smoothwall.net) [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 http://wiki.squid-cache.org/SquidFaq/SquidAcl#ACL_elements for more options. But setting up ACLs using regex can be quite tricky. Maybe you can google around.

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.