Categories
Uncategorized

Block External WP Requests

Adding this to wp-config.php file will block WP from making external HTTP requests:

define( 'WP_HTTP_BLOCK_EXTERNAL', true );

This will only allow certain requests:

/** Let these hosts through */
define( 'WP_ACCESSIBLE_HOSTS', '*.wordpress.org', '*.wordpress.com' );

That’s all in today’s post!

Leave a Reply

Your email address will not be published. Required fields are marked *