Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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

I'm looking to drop a connection if a website contains a certain word or phrase. The issue is, the site is typically compressed with gzip. Any ideas?

share|improve this question
transparent http proxy like squid? – frostschutz Mar 11 '13 at 3:24

snort knows how to handle compressed HTTP requests and responses. So configuring snort in inline mode and writing rules with file_data before the content keyword would do it.

share|improve this answer
Do you have a link to a guide or similar? Sounds perfect – Coffeee Mar 11 '13 at 12:08

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.