Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

wp_http_validate_url()

3 tags 1 category

wp_http_validate_url() — Validates a URL as safe for use in the HTTP API. The only supported protocols are http and https. Examples of URLs that are considered unsafe: ftp://example.com/caniload.php – Invalid protocol – only http and https are allowed. http:///example.com/caniload.php – Malformed URL. http://user:pass

Inputs: $url (string): Request URL.

Returns string|false: Returns false if the URL is not safe, or the original URL if it is safe.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…