0

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.
sysadmin1138
  • 133,124
  • 18
  • 176
  • 300
Kumar
  • 823
  • 3
  • 20
  • 43

2 Answers2

1

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.

Zoredache
  • 130,897
  • 41
  • 276
  • 420
  • i mean HTML body 'header words' – Kumar Oct 11 '10 at 05: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 09:42
0

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.

DonEstefan
  • 128
  • 2
  • 9