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.
- Host: GitHub
- URL: https://github.com/sporkmonger/ifproxy
- Owner: sporkmonger
- License: other
- Created: 2019-04-01T02:35:15.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-04-29T19:56:07.000Z (over 4 years ago)
- Last Synced: 2025-04-09T22:09:01.325Z (9 months ago)
- Topics: firewall, reverse-proxy, web-application-firewall
- Language: Go
- Size: 30.3 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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