Add Readme's for HTTP security headers. Add list of HTTP return codes.
This commit is contained in:
parent
dfd8897e01
commit
968cba3ef9
123
DOC/README.HTTP_security_headers
Normal file
123
DOC/README.HTTP_security_headers
Normal file
@ -0,0 +1,123 @@
|
||||
# ==========
|
||||
# - HTTP security Headers
|
||||
# ==========
|
||||
|
||||
# - X-Frame-Options
|
||||
# -
|
||||
# - See: https://scotthelme.co.uk/hardening-your-http-response-headers/#x-frame-options
|
||||
# -
|
||||
# - X-Frame-Options tells the browser whether you want to
|
||||
# - allow your site to be framed or not. By preventing a
|
||||
# - browser from framing your site you can defend against
|
||||
# - attacks like clickjacking.
|
||||
# -
|
||||
# - Valid values:
|
||||
# -
|
||||
# - DENY meaning your site can't be framed
|
||||
# -
|
||||
# - SAMEORIGIN which allows you to frame your own site
|
||||
# -
|
||||
# - ALLOW-FROM https://example.com/ which lets you specify
|
||||
# - sites that are permitted to frame your own site.
|
||||
# -
|
||||
Header always set X-Frame-Options "SAMEORIGIN"
|
||||
|
||||
|
||||
# - X-Xss-Protection
|
||||
# -
|
||||
# - See: https://scotthelme.co.uk/hardening-your-http-response-headers/#x-xss-protection
|
||||
# -
|
||||
# - X-XSS-Protection sets the configuration for the cross-site
|
||||
# - scripting filters built into most browsers. The best
|
||||
# - configuration is "X-XSS-Protection: 1; mode=block".
|
||||
# -
|
||||
# - Valid settings for the header are:
|
||||
# -
|
||||
# - 0 which disables the protection,
|
||||
# -
|
||||
# - 1 which enables the protection
|
||||
# -
|
||||
# - 1; mode=block which tells the browser to block the response
|
||||
# - if it detects an attack rather than sanitising
|
||||
# - the script.
|
||||
# -
|
||||
Header always set X-Content-Type-Options "nosniff"
|
||||
|
||||
|
||||
# - X-Content-Type-Options
|
||||
# -
|
||||
# - See: https://scotthelme.co.uk/hardening-your-http-response-headers/#x-content-type-options
|
||||
# -
|
||||
# - X-Content-Type-Options stops a browser from trying to MIME-sniff
|
||||
# - the content type and forces it to stick with the declared
|
||||
# - content-type.
|
||||
# -
|
||||
# - The only valid value for this header is
|
||||
# -
|
||||
# - "X-Content-Type-Options: nosniff".
|
||||
# -
|
||||
Header always set X-Content-Type-Options "nosniff"
|
||||
|
||||
# - Strict-Transport-Security
|
||||
# -
|
||||
# - See: https://scotthelme.co.uk/hsts-the-missing-link-in-tls/
|
||||
# -
|
||||
# - HTTP Strict Transport Security (HSTS) is an excellent feature
|
||||
# - to support on your site and strengthens your implementation of
|
||||
# - TLS by getting the User Agent to enforce the use of HTTPS.
|
||||
# -
|
||||
# - The HSTS header will be remembered by a standard compliant browser
|
||||
# - for max-age seconds.
|
||||
# -
|
||||
#Header add Strict-Transport-Security "max-age=15768000"
|
||||
Header always set Strict-Transport-Security "max-age=31536000"
|
||||
|
||||
|
||||
# - Content-Security-Policy (CSP)
|
||||
# -
|
||||
# - See: https://scotthelme.co.uk/content-security-policy-an-introduction/
|
||||
# -
|
||||
# -
|
||||
# - Content Security Policy is an effective measure to protect your
|
||||
# - site from XSS attacks. By whitelisting sources of approved content,
|
||||
# - you can prevent the browser from loading malicious assets. Analyse
|
||||
# - this policy in more detail.
|
||||
# -
|
||||
# - Once you've created your policy, there's a really great feature you
|
||||
# - can take advantage of to test it. Instead of sending the header
|
||||
# - Content-Security-Policy:, you can send Content-Security-Policy-Report-Only:.
|
||||
# - This means the browser will receive and act upon the policy, but instead of
|
||||
# - enforcing it, it will give you feedback on what the effects of the policy
|
||||
# - would have been.
|
||||
# -
|
||||
# - For a complete list and explanation of values, see urls above
|
||||
# -
|
||||
# - Examples: "default-src 'self';"
|
||||
# - would only allow assets to be loaded from the current origin
|
||||
# - (but not subdomains).
|
||||
# -
|
||||
# - "default-src https:"
|
||||
# - would allow any assets to be loaded over https from any origin.
|
||||
# -
|
||||
Header set Content-Security-Policy "default-src 'https:';"
|
||||
|
||||
|
||||
# - Referrer-Policy
|
||||
# -
|
||||
# - See: https://scotthelme.co.uk/a-new-security-header-referrer-policy/
|
||||
# - https://www.w3.org/TR/referrer-policy/
|
||||
# -
|
||||
# - Referrer Policy is a new header that allows a site to control how
|
||||
# - much information the browser includes with navigations away from
|
||||
# - a document and should be set by all sites.
|
||||
# -
|
||||
# - For a complete list and explanation of values, see urls above
|
||||
# -
|
||||
# - Example: "no-referrer-when-downgrade"
|
||||
# - The browser will not send the referrer header when navigating
|
||||
# - from HTTPS to HTTP, but will always send the full URL in the
|
||||
# - referrer header when navigating from HTTP to any origin. It
|
||||
# - doesn't matter whether the source and destination are the same
|
||||
# - site or not, only the scheme.
|
||||
# -
|
||||
Header set Referrer-Policy "no-referrer-when-downgrade"
|
42
DOC/README.HTTP_status_codes
Normal file
42
DOC/README.HTTP_status_codes
Normal file
@ -0,0 +1,42 @@
|
||||
HTTP - Return Codes
|
||||
===================
|
||||
|
||||
|
||||
100 continue weitere Daten senden
|
||||
101 switching protocols Übertragungsprotokoll geändert
|
||||
200 ok Übertragung ok
|
||||
201 created Neue Datenquelle wurde erstellt
|
||||
202 accepted Anfrage akzeptiert, aber noch nicht beantwortet
|
||||
203 non-authoritative information Zwischengeschaltetes Programm kann Information verändert haben
|
||||
204 no content es wurde nichts (neues) geliefert
|
||||
205 reset content Inhalt soll zurückgesetzt werden
|
||||
206 partial content Es wurde (nur) ein Teil des Inhaltes zurückgeliefert
|
||||
300 multiple choice Es stehen mehrere Datenquellen zur Auswahl
|
||||
301 moved permanently Dokument wurde dauerhaft verschoben ( neues Ziel wird in der Meldung angegeben )
|
||||
302 moved temporarily Dokument wurde kurzzeitig verschoben ( neues Ziel wird in der Meldung angegeben )
|
||||
303 see other / method Falscher Adressat für Anforderung ( neues Ziel wird in der Meldung angegeben )
|
||||
304 not modified Dokument wurde seit der letzten Anforderung nicht verändert
|
||||
305 use proxy Anfrage kann besser vom proxy beantwortet werden ( Adresse in der Meldung )
|
||||
306 unused aktuell unbenutzt ( aber noch reserviert )
|
||||
307 movedtemporarily Dokument wurde kurzzeitig verschoben ( neues Ziel wird in der Meldung angegeben )
|
||||
400 bad request Anfrage ist fehlerhaft
|
||||
401 unauthorized keine Berechtigung
|
||||
402 payment required nur gegen Bezahlung geht's weiter ( noch nicht eingesetzt )
|
||||
403 forbidden Art des Zugriffs ist verboten
|
||||
404 not found Dokument wurde nicht gefunden
|
||||
405 method not allowed MIME-Typ passt nicht zum Dokument
|
||||
406 not acceptable Anfrage wurde nicht akzeptiert
|
||||
407 proxy authentication required keine Berechtigung durch proxy
|
||||
408 timeout Anwort dauerte zu lange
|
||||
410 gone Dokument wurde gelöscht
|
||||
411 length required Länge des Dokuments muss angegeben werden
|
||||
413 too large Anforderung ist zu lang
|
||||
414 URI to large die angegebene Zieladresse ist zu lang
|
||||
415 unsupported media type angegebener Dokumententyp wird nicht unterstützt
|
||||
500 internal server error interner Fehler auf dem Server ( hard- oder software )
|
||||
501 not implemented für diese Abfrage ist der Server nicht programmiert
|
||||
502 bad gateway proxy oder gateway hat einen Fehler in den Daten erkannt
|
||||
503 service unavailable Server ist überlastet
|
||||
504 gateway timeout proxy oder gateway erhält keine Antwort vom Server
|
||||
505 version not supported das verwendete HTTP-Protokoll wird nicht unterstützt
|
||||
|
63
Files/html_return_codes.html
Normal file
63
Files/html_return_codes.html
Normal file
@ -0,0 +1,63 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html><head>
|
||||
|
||||
|
||||
<meta name="AUTHOR" content="Ulrich Mayer">
|
||||
<meta name="DESCRIPTION" content="Liste der HTTP - Return Codes">
|
||||
<meta name="robots" content="INDEX, FOLLOW">
|
||||
<meta http-equiv="Content-Language" content="de"><title>HTTP - Return Codes</title></head><body bgcolor="WHITE">
|
||||
|
||||
<h1 align="center">HTTP - Return Codes</h1>
|
||||
<hr>
|
||||
|
||||
<h3>Liste der gebräuchlichsten HTTP-Codes</h3>
|
||||
<table border="1">
|
||||
<tbody><tr><td> 100 </td><td>continue</td><td>weitere Daten senden</td></tr>
|
||||
<tr><td> 101</td><td>switching protocols</td><td>Übertragungsprotokoll geändert</td></tr>
|
||||
|
||||
<tr><td> 200</td><td>ok</td><td> Übertragung ok</td></tr>
|
||||
<tr><td> 201</td><td>created</td><td>Neue Datenquelle wurde erstellt </td></tr>
|
||||
<tr><td> 202</td><td>accepted</td><td>Anfrage akzeptiert, aber noch nicht beantwortet</td></tr>
|
||||
<tr><td> 203</td><td>non-authoritative information </td><td>Zwischengeschaltetes Programm kann Information verändert haben </td></tr>
|
||||
<tr><td> 204</td><td>no content</td><td>es wurde nichts (neues) geliefert</td></tr>
|
||||
<tr><td> 205</td><td>reset content </td><td>Inhalt soll zurückgesetzt werden</td></tr>
|
||||
<tr><td> 206</td><td>partial content</td><td>Es wurde (nur) ein Teil des Inhaltes zurückgeliefert</td></tr>
|
||||
|
||||
<tr><td> 300</td><td>multiple choice</td><td>Es stehen mehrere Datenquellen zur Auswahl</td></tr>
|
||||
<tr><td> 301</td><td>moved permanently</td><td>Dokument wurde dauerhaft verschoben ( neues Ziel wird in der Meldung angegeben )</td></tr>
|
||||
<tr><td> 302</td><td>moved temporarily</td><td>Dokument wurde kurzzeitig verschoben ( neues Ziel wird in der Meldung angegeben )</td></tr>
|
||||
<tr><td> 303</td><td>see other / method</td><td>Falscher Adressat für Anforderung ( neues Ziel wird in der Meldung angegeben )</td></tr>
|
||||
<tr><td> 304</td><td>not modified</td><td>Dokument wurde seit der letzten Anforderung nicht verändert</td></tr>
|
||||
<tr><td> 305</td><td>use proxy</td><td>Anfrage kann besser vom proxy beantwortet werden ( Adresse in der Meldung )</td></tr>
|
||||
<tr><td> 306</td><td>unused</td><td>aktuell unbenutzt ( aber noch reserviert )</td></tr>
|
||||
<tr><td> 307</td><td>moved temporarily</td><td>Dokument wurde kurzzeitig verschoben ( neues Ziel wird in der Meldung angegeben ) </td></tr>
|
||||
|
||||
<tr><td> 400</td><td>bad request</td><td>Anfrage ist fehlerhaft</td></tr>
|
||||
<tr><td> 401</td><td>unauthorized </td><td>keine Berechtigung</td></tr>
|
||||
<tr><td> 402</td><td>payment required</td><td>nur gegen Bezahlung geht's weiter ( noch nicht eingesetzt )</td></tr>
|
||||
<tr><td> 403</td><td>forbidden</td><td>Art des Zugriffs ist verboten</td></tr>
|
||||
<tr><td> 404</td><td>not found</td><td>Dokument wurde nicht gefunden</td></tr>
|
||||
<tr><td> 405</td><td>method not allowed</td><td> MIME-Typ passt nicht zum Dokument</td></tr>
|
||||
<tr><td> 406</td><td>not acceptable</td><td>Anfrage wurde nicht akzeptiert</td></tr>
|
||||
<tr><td> 407</td><td>proxy authentication required </td><td>keine Berechtigung durch proxy</td></tr>
|
||||
<tr><td> 408</td><td>timeout</td><td>Anwort dauerte zu lange</td></tr>
|
||||
<tr><td> 410</td><td>gone</td><td>Dokument wurde gelöscht</td></tr>
|
||||
<tr><td> 411</td><td>length required</td><td>Länge des Dokuments muss angegeben werden</td></tr>
|
||||
<tr><td> 413</td><td>too large</td><td>Anforderung ist zu lang</td></tr>
|
||||
<tr><td> 414</td><td>URI to large</td><td>die angegebene Zieladresse ist zu lang</td></tr>
|
||||
<tr><td> 415</td><td>unsupported media type</td><td>angegebener Dokumententyp wird nicht unterstützt</td></tr>
|
||||
|
||||
<tr><td> 500</td><td>internal server error</td><td>interner Fehler auf dem Server ( hard- oder software )</td></tr>
|
||||
<tr><td> 501</td><td>not implemented</td><td>für diese Abfrage ist der Server nicht programmiert</td></tr>
|
||||
<tr><td> 502</td><td>bad gateway</td><td>proxy oder gateway hat einen Fehler in den Daten erkannt</td></tr>
|
||||
<tr><td> 503</td><td>service unavailable</td><td>Server ist überlastet</td></tr>
|
||||
<tr><td> 504</td><td>gateway timeout</td><td>proxy oder gateway erhält keine Antwort vom Server</td></tr>
|
||||
<tr><td> 505</td><td>version not supported </td><td>das verwendete HTTP-Protokoll wird nicht unterstützt</td></tr>
|
||||
</tbody></table>
|
||||
|
||||
|
||||
<br><br>
|
||||
<hr>
|
||||
|
||||
|
||||
</body></html>
|
Loading…
Reference in New Issue
Block a user