WP_HTTP_BLOCK_EXTERNAL
WP_HTTP_BLOCK_EXTERNAL is a wp-config.php constant that stops the WordPress HTTP API from contacting any host other than localhost and the site itself. The companion constant WP_ACCESSIBLE_HOSTS lists the hostnames, with optional wildcards, that remain allowed.