webstraxt / m2-better-ips
A tiny little module to tell Magento to use different headers when determining the user's IP address
Installs: 18
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:magento2-module
Requires
- magento/framework: *
README
A tiny little module to tell Magento to use different headers when determining the user's IP address.
The following headers will be checked in this order:
HTTP_CF_CONNECTING_IP
HTTP_X_REAL_IP
HTTP_X_FORWARDED_FOR
By default, Magento then falls back to using the REMOTE_ADDR
header.
To install:
composer require webstraxt/m2-better-ips
php bin/magento module:enable Webstraxt_BetterIPs
php bin/magento setup:upgrade
Copyright (C) 2024 Webstraxt Limited