Disable requests to api.wordpress.org

You can Disable HTTP Calls by adding this in your wp-config.php

define( 'WP_HTTP_BLOCK_EXTERNAL', TRUE );

This will disable/block all external HTTP requests and will make website alot faster.

And then you can whitelist domains that you don’t want to block.

define( 'WP_ACCESSIBLE_HOSTS', 'example.com, domain.com' );

Leave a Comment