Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MetaGer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open-source
MetaGer
Commits
acd66ef3
Commit
acd66ef3
authored
8 years ago
by
Dominik Hebeler
Browse files
Options
Downloads
Patches
Plain Diff
Update index.php
parent
f863c937
No related branches found
No related tags found
1 merge request
!459
Update index.php
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/index.php
+6
-0
6 additions, 0 deletions
public/index.php
with
6 additions
and
0 deletions
public/index.php
+
6
−
0
View file @
acd66ef3
...
...
@@ -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'
])
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment