Skip to content
This repository has been archived by the owner on Nov 4, 2023. It is now read-only.

Enable alternative IP Detection for logging and ipblock checking, #44

Open
pulponair opened this issue May 14, 2019 · 0 comments
Open

Comments

@pulponair
Copy link
Collaborator

pulponair commented May 14, 2019

Scenario:
If there is any sort of proxy or caching server in front of your actuall application server (e.g. varnish or nginx proxy/lb) $_SERVER['REMOTE_ADDRESS'] may alway contain 127.0.0.1

That issue is related to logging and the ipblocking Interceptor. And may result in your forms getting blocked.

Solution 1:
Introduce some sort of automatic detection e.g.:
check if REMOTE_ADDRESS points to 127.0.0.1 and check for the existens of e.g. $_SERVER['HTTP_X_REAL_IP'] (Might varydepending on the actuall infrastructure).

Solution 2:
Introduce some sort of configuration for that.

Note:
Keep in mind that \TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv is not aware of any key in e.g. $_SERVER.

luzat pushed a commit to luzat/formhandler that referenced this issue Nov 23, 2022
Reset turnstile widget after it expires
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant