X-Content-Type-Options-Vulnerability/EN/Solution Tips: Unterschied zwischen den Versionen
(2 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
− | nosniff; | + | nosniff; |
− | '''Code example of an .htaccess file on an Apache webserver.''' | + | |
− | + | '''Code example of an .htaccess file on an Apache webserver.''' | |
− | <IfModule mod_headers.c> | + | |
+ | <IfModule mod_headers.c> | ||
# prevent mime based attacks like drive-by download attacks, IE and Chrome | # prevent mime based attacks like drive-by download attacks, IE and Chrome | ||
'''Header set X-Content-Type-Options "nosniff"''' | '''Header set X-Content-Type-Options "nosniff"''' | ||
− | + | </IfModule> | |
− | |||
Here is an example of an .htaccess file which will set the '''Header Scanner''' to green. | Here is an example of an .htaccess file which will set the '''Header Scanner''' to green. | ||
− | ([[Htaccess|.htaccess example | + | ([[Htaccess/EN|.htaccess example]]) |
Aktuelle Version vom 17. April 2019, 12:42 Uhr
nosniff;
Code example of an .htaccess file on an Apache webserver.
<IfModule mod_headers.c> # prevent mime based attacks like drive-by download attacks, IE and Chrome Header set X-Content-Type-Options "nosniff" </IfModule>
Here is an example of an .htaccess file which will set the Header Scanner to green. (.htaccess example)