send_nosniff_header
Send a HTTP header to disable content type sniffing in browsers which support it.
Description
send_nosniff_header();
Usage
if ( !function_exists( 'send_nosniff_header' ) ) { require_once ABSPATH . WPINC . '/functions.php'; } // NOTICE! Understand what this does before running. $result = send_nosniff_header();
Defined (1)
The function is defined in the following location(s).
- /wp-includes/functions.php
- function send_nosniff_header() {
- @header( 'X-Content-Type-Options: nosniff' );
- }