Skip to content

Use normalizedParams to get remote address #17

Description

@mschwemer

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().

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions