Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use normalizedParams to get remote address #17

Open
mschwemer opened this issue Dec 19, 2024 · 0 comments
Open

Use normalizedParams to get remote address #17

mschwemer opened this issue Dec 19, 2024 · 0 comments

Comments

@mschwemer
Copy link
Contributor

Currently the IP comparison is done against the global variable $_SERVER['REMOTE_ADRRESS]. In case the TYPO3 instance is behind a reverse proxy, this variable contains the ip of the reverse proxy. The comparison is always false.

Solution is to use the request attribute normalizedParams and fetch the remote ip address from there with ->getRemoteAddress().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant