Forums
(@limdul)
7 years, 10 months ago
Blocking external connections/hosts is a native WordPress function.
define('WP_HTTP_BLOCK_EXTERNAL', true); define( 'WP_ACCESSIBLE_HOSTS', 'api.ww.wp.xz.cn,*.github.com' );
see wp-config Codex
hope this helps