An open API service indexing awesome lists of open source software.

https://github.com/sporkmonger/ifproxy

A reverse proxy for golang that allows requests to be blocked/aborted before being sent upstream.
https://github.com/sporkmonger/ifproxy

firewall reverse-proxy web-application-firewall

Last synced: 9 months ago
JSON representation

A reverse proxy for golang that allows requests to be blocked/aborted before being sent upstream.

Awesome Lists containing this project

README

          

# Conditional Proxy

[![GoDoc Widget]][GoDoc] [![Build Widget]][Build]

----

A reverse proxy for golang that allows requests to be blocked/aborted before
being sent upstream.

The `Director` function, unlike the `ReverseProxy` in the `httputil` package,
returns a `bool` that determines whether a `Request` should be sent to the
upstream server or not. If `false` is returned, by default, a 403 response
will be returned. This can be customized via the `CreateResponse` function.
Otherwise, the `ConditionalReverseProxy` behaves exactly the same way as the
`ReverseProxy` from `httputil`.

Requires Go 1.13+.

[GoDoc]: https://godoc.org/github.com/sporkmonger/ifproxy
[GoDoc Widget]: https://godoc.org/github.com/sporkmonger/ifproxy?status.svg
[Build]: https://circleci.com/gh/sporkmonger/ifproxy
[Build Widget]: https://circleci.com/gh/sporkmonger/ifproxy.svg?style=shield