Skip to content
Snippets Groups Projects
Commit acd66ef3 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Update index.php

parent f863c937
No related branches found
No related tags found
1 merge request!459Update index.php
......@@ -7,6 +7,12 @@
* @author Taylor Otwell <taylorotwell@gmail.com>
*/
# Manchmal passiert es, dass ein Proxy sowohl den HEADER HTTP_FORWARDED, als auch den HEADER "HTTP_X_FORWARDED_FOR" setzt
# Wir löschen den einen und verwenden Ihn nicht:
if (isset($_SERVER["HTTP_FORWARDED"]) && isset($_SERVER["HTTP_X_FORWARDED_FOR"])) {
unset($_SERVER["HTTP_FORWARDED"]);
}
# Unser erster Schritt wird sein, IP-Adresse und USER-Agent zu anonymisieren, damit
# nicht einmal wir selbst noch Zugriff auf die Daten haben:
if( !isset($_SERVER['HTTP_X_FORWARDED_FOR']) && isset($_SERVER['REMOTE_ADDR']) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment