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.


[Index] [Quick Jump]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS] 0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.1.0
Change log CHANGELOG
Dependencies base (>= && <5.0), crypton-connection (>=0.3.1), data-default, http-client (>=0.7.11 && <0.8), http-client-tls (>=0.3.6 && <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 2023-08-01T22:46:02Z
Distributions Arch:0.1.0, Debian:0.0.3, Fedora:0.0.5, LTSHaskell:0.1.0, NixOS:0.1.0, Stackage:0.1.0, openSUSE:0.1.0
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 5006 total (69 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2023-08-02 [all 1 reports]