Skip to content
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 verdict to HTTP response headers #749

Open
trueuto opened this issue Oct 15, 2022 · 0 comments
Open

Add verdict to HTTP response headers #749

trueuto opened this issue Oct 15, 2022 · 0 comments

Comments

@trueuto
Copy link

trueuto commented Oct 15, 2022

Hi,

to check and validate e2guardian's configuration I use a simple Python app that issues a number of HTTP requests via the e2guardian proxy, some of them expected to be blocked (DENIED), some expected to be passed. Currently I simply parse the output and look for a specific string I have added to my e2guardian error page template to detect whether the request has been denied or not. While this works quite well in most cases it does not for banned URLs or so. I think it could be useful (possibly not only for such automated tests) to simply add a HTTP header, e.g.:

X-e2g-verdict: DENIED

Or even maybe with some extra info, similar to what can be displayed on the templated error page in other headers?

Thanks for the great work you do!

T

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants