GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
HTTP::Tiny::Paranoid(3) User Contributed Perl Documentation HTTP::Tiny::Paranoid(3)

HTTP::Tiny::Paranoid - A safer HTTP::Tiny

    # use just like HTTP::Tiny
    use HTTP::Tiny::Paranoid;
    my $response = HTTP::Tiny::Paranoid->new->get('http://example.com');
    # block or whitelist specific hosts
    # delegates to Net::DNS::Paranoid
    HTTP::Tiny::Paranoid->blocked_hosts([...]);
    HTTP::Tiny::Paranoid->whitelisted_hosts([...]);

This module is a subclass of HTTP::Tiny that performs exactly one additional function: before connecting, it passes the hostname to Net::DNS::Paranoid. If the hostname is rejected, then the request is aborted before a connect is even attempted.

By default, Net::DNS::Paranoid rejects connections to private network ranges. The blocklist & whitelist can be manipulated using the "blocked_hosts" and "whitelisted_hosts" class methods.

  • HTTP::Tiny
  • Net::DNS::Paranoid
  • LWPx::ParanoidAgent
  • LWP::UserAgent::Paranoid

Please report any bugs or feature requests through the issue tracker at <https://github.com/robn/HTTP-Tiny-Paranoid/issues>. You will be notified automatically of any progress on your issue.

This is open source software. The code repository is available for public review and contribution under the terms of the license.

<https://github.com/robn/HTTP-Tiny-Paranoid>

  git clone https://github.com/robn/HTTP-Tiny-Paranoid.git

Robert Norris <rob@eatenbyagrue.org>

This software is copyright (c) 2014 by Robert Norris.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

2017-10-30 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.