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
Change log CHANGELOG
Dependencies base (>= && <5.0), connection (>=0.2.5), data-default, http-client (==0.5.*), http-client-tls (>=0.3.2 && <0.4), network, 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 2020-02-25T18:50:05Z
Distributions NixOS:0.0.2
Downloads 633 total (15 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs not available [build log]
All reported builds failed as of 2020-02-26 [all 3 reports]


  • Network
    • HTTP
      • Client
        • Network.HTTP.Client.Restricted


Maintainer's Corner

For package maintainers and hackage trustees