X-Content-Type-Options-Vulnerability/EN/Solution Tips: Unterschied zwischen den Versionen
Zeile 1: | Zeile 1: | ||
− | nosniff; <br><br> | + | nosniff; <br /><br /> |
− | '''Code example of an .htaccess file on an Apache webserver.'''<br> | + | '''Code example of an .htaccess file on an Apache webserver.'''<br /> |
− | + | ||
− | <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/EN|.htaccess example]]) | ([[Htaccess/EN|.htaccess example]]) |
Version vom 4. April 2019, 12:15 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)