webstraxt/m2-better-ips

A tiny little module to tell Magento to use different headers when determining the user's IP address

Maintainers

Package info

github.com/webstraxt/m2-better-ips

Type:magento2-module

pkg:composer/webstraxt/m2-better-ips

Statistics

Installs: 799

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

1.0.0 2024-08-14 10:09 UTC

This package is auto-updated.

Last update: 2026-02-16 18:34:08 UTC


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