[wp-trac] [WordPress Trac] #29619: Make WP_HTTP_BLOCK_EXTERNAL more easy to use
WordPress Trac
noreply at wordpress.org
Tue Aug 26 07:58:27 UTC 2025
#29619: Make WP_HTTP_BLOCK_EXTERNAL more easy to use
--------------------------+---------------------
Reporter: markoheijnen | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: HTTP API | Version: 2.8
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+---------------------
Changes (by pmbaldha):
* keywords: dev-feedback needs-patch =>
Comment:
The WP_ACCESSIBLE_HOSTS constant in WordPress is used to define a
whitelist of hosts that are allowed to be contacted by your WordPress
site, especially when the WP_HTTP_BLOCK_EXTERNAL constant is set to true.
{{{#!php
define('WP_HTTP_BLOCK_EXTERNAL', true);
define('WP_ACCESSIBLE_HOSTS', 'api.wordpress.org,*.yourdomain.com
,external-service.com');
}}}
So, your requested feature can be achievable as described above, so I am
marking the ticket as invalid and closing it.
If you (@markoheijnen) think that the closing ticket is inappropriate, You
can reopen this ticket.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29619#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list