How deactivate the http-api

Try this in wp-config.php:

define( 'WP_HTTP_BLOCK_EXTERNAL', true );