-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add HTTP content filtering #277
Conversation
GNUmakefile
Outdated
@@ -376,6 +404,13 @@ PKG_LDFLAGS+= -L$(LIBPCAP_FOUND)/lib | |||
PKG_LIBS+= -lpcap | |||
endif | |||
endif | |||
ifeq ($(filter -DWITH_CONTENT_FILTER,$(FEATURES)),-DWITH_CONTENT_FILTER) | |||
ifdef LIBJSON_FOUND | |||
PKG_CPPFLAGS+= -I$(LIBNET_FOUND)/include |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, copy-paste daemon, will fix it
It's @droe who should review this pr, not me. Sorry. |
Another reason that I couldn't review your pr is that I divert HTTP traffic to the E2Guardian web filter on my UTMFW project using SSLproxy. In fact, I have developed SSLproxy especially for HTTP/s content filtering (and for POP3/s and SMTP/s, or perhaps others). |
This feature adds possibility of HTTP content filtering.
It uses JSON format for configuration file. User can pass or drop URLs, methods and content-type (for response only).
Example of configuration:
When rules blocks something sslsplit generates HTTP response with the reason of blocking.
And use for it HTML template from http_deny_tmpl parametr.