send_nosniff_header

Send a HTTP header to disable content type sniffing in browsers which support it.

Description

send_nosniff_header(); 

Usage

  1. if ( !function_exists( 'send_nosniff_header' ) ) { 
  2. require_once ABSPATH . WPINC . '/functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = send_nosniff_header(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/functions.php  
  1. function send_nosniff_header() { 
  2. @header( 'X-Content-Type-Options: nosniff' );