X-Content-Type-Options-Vulnerability/EN/Solution Tips: Unterschied zwischen den Versionen

Aus Siwecos
Wechseln zu: Navigation, Suche
(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; <br><br>
+
nosniff;
'''Code example of an .htaccess file on an Apache webserver.'''<br>
+
 
'''--snip'''<pre>
+
'''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"'''
<pre></IfModule></pre>
+
</IfModule>
'''—snap'''
 
  
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 '''Header Scanner''' to green.
([[Htaccess|.htaccess-Beispiel]])
+
([[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)