X-Content-Type-Options-Vulnerability/EN/Solution Tips: Unterschied zwischen den Versionen
Zeile 9: | Zeile 9: | ||
Here is an example of an .htaccess file which will set the '''HTTP-Security-Header-Scanner''' to green. | Here is an example of an .htaccess file which will set the '''HTTP-Security-Header-Scanner''' to green. | ||
− | ([[Htaccess|.htaccess | + | ([[Htaccess|.htaccess example (German only]]) |
Version vom 6. Februar 2019, 15:56 Uhr
nosniff;
Code example of an .htaccess file on an Apache webserver.
--snip
<IfModule mod_headers.c> # prevent mime based attacks like drive-by download attacks, IE and Chrome '''Header set X-Content-Type-Options "nosniff"''' <pre></IfModule>
—snap
Here is an example of an .htaccess file which will set the HTTP-Security-Header-Scanner to green. (.htaccess example (German only)