Skip to content

Reject any Alien::Build fetch requests going to hosts in the block list

Notifications You must be signed in to change notification settings

PerlAlien/Alien-Build-Plugin-Fetch-HostBlockList

Repository files navigation

Alien::Build::Plugin::Fetch::HostBlockList static linux

Reject any Alien::Build fetch requests going to hosts in the block list

SYNOPSIS

Using with environment variables only:

export ALIEN_BUILD_PRELOAD=Fetch::HostBlockList
export ALIEN_BUILD_HOST_BLOCK=badsite1.com,badsite2.org

Using from ~/.alienbuild/rc.pl:

preload_preload 'Fetch::HostBlockList', block_hosts => [qw( badsite1.com badsite2.org )];

DESCRIPTION

This is an Alien::Build plugin that will, when enabled, reject any fetch requests made by an Alien::Build based Alien that are fetching from a remote host that is on the block list.

Aliens that bundle packages are not affected, as this plugin does not check file URLs.

If now block list is specified (either via the property or environment variable, see below), then not hosts will be blocked.

PROPERTIES

block_hosts

plugin 'Fetch::HostBlockList', block_list => \@hosts;

The list of domains that will be blocked. Should be provided as an array reference. If not provided, then ALIEN_BUILD_HOST_BLOCK will be used (see below).

ENVIRONMENT

  • ALIEN_BUILD_HOST_BLOCK

    Comma separated list of hosts to block. If not specified when the plugin is applied then this list will be used.

SEE ALSO

AUTHOR

Graham Ollis [email protected]

COPYRIGHT AND LICENSE

This software is copyright (c) 2022-2024 by Graham Ollis.

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

About

Reject any Alien::Build fetch requests going to hosts in the block list

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages