http-client-restricted: restricting the servers that http-client will use

[ library, mit, network ] [ Propose Tags ]

Addition to the http-client and http-client-tls libraries, that restricts the HTTP servers that can be used.

This is useful when a security policy needs to eg, prevent connections to HTTP servers on localhost or a local network, or only allow connections to a specific HTTP server.

It handles restricting redirects as well as the initial HTTP connection, and it also guards against DNS poisoning attacks.

Versions [faq] 0.0.1, 0.0.2, 0.0.3, 0.0.4
Change log CHANGELOG
Dependencies base (>= && <5.0), connection (>=0.2.5), data-default, http-client (==0.7.*), http-client-tls (>=0.3.2 && <0.4), network (>=, network-bsd, utf8-string [details]
License MIT
Copyright 2018 Joey Hess, 2013 Michael Snoyman
Author Joey Hess
Maintainer Joey Hess <>
Category Network
Source repo head: git clone git://
Uploaded by JoeyHess at 2021-01-12T17:38:00Z
Distributions Arch:0.0.4, Fedora:0.0.3, NixOS:0.0.4, openSUSE:0.0.3
Downloads 1374 total (81 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2021-01-12 [all 1 reports]


[Index] [Quick Jump]


Maintainer's Corner

For package maintainers and hackage trustees