X-Content-Type-Options-Vulnerability/EN/Solution Tips: Unterschied zwischen den Versionen
(Die Seite wurde neu angelegt: „nosniff; <br><br> '''Code example of an .htaccess file on an Apache webserver.'''<br> '''--snip'''<pre> <IfModule mod_headers.c> # prevent mime based at…“) |
|||
(5 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 | + | '''Header set X-Content-Type-Options "nosniff"''' |
− | + | </IfModule> | |
− | |||
− | Here is an example of an .htaccess file which will set the ''' | + | Here is an example of an .htaccess file which will set the '''Header Scanner''' to green. |
− | ([[Htaccess|.htaccess | + | ([[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)