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…“) |
|||
Zeile 4: | Zeile 4: | ||
<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"''' |
<pre></IfModule></pre> | <pre></IfModule></pre> | ||
'''—snap''' | '''—snap''' |
Version vom 17. Januar 2019, 15:34 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-Beispiel)