• Resolved jetxpert

    (@jetxpert)


    Good Day!

    We know that WordPress provides filters for blocking all external HTTP calls (with exceptions, if necessary) as noted below.

    define('WP_HTTP_BLOCK_EXTERNAL', true);
    define( 'WP_ACCESSIBLE_HOSTS', 'api.wordpress.org,*.github.com' );

    However, it can be time consuming to determine which hosts (URLs) we need to add to the WP_ACESSSIBLE_HOSTS list.

    Is their any way we can manipulate the above to block a single host (URL) rather than listing all the exceptions? This would be an easier, faster approach.

    For example, by using the filter (fictitious, in this case):

    define( 'WP_INACCESSIBLE_HOSTS', '*.github.com' );

    Hoping you guys understand our request.

    Any help would be appreciated. If you’re a WP developer, how can we add this request to the WP 5.7 wish list?

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘How to Block Outgoing HTTP Calls | Single URL’ is closed to new replies.