PHPackages                             ccerda0520/alternative-http-header - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. ccerda0520/alternative-http-header

ActiveMagento2-module[HTTP &amp; Networking](/categories/http)

ccerda0520/alternative-http-header
==================================

A Magento 2 module that uses a custom http remote address header used by Cloudflare or other CDN/proxies.

1.0.0(6y ago)3551OSL-3.0PHPPHP &gt;=7.0.0

Since Apr 8Pushed 6y ago2 watchersCompare

[ Source](https://github.com/ccerda0520/alternative-http-header)[ Packagist](https://packagist.org/packages/ccerda0520/alternative-http-header)[ RSS](/packages/ccerda0520-alternative-http-header/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (2)Used By (0)

Magento 2 Alternative Http Header
=================================

[](#magento-2-alternative-http-header)

A Magento 2 module that uses a custom http remote address header used by Cloudflare or other CDN/proxies.

Description
-----------

[](#description)

This Magento 2 module adds the HTTP\_CF\_CONNECTING\_IP and HTTP\_X\_FORWARDED\_FOR headers to be used within the application. By default Cloud Distribution Network (CDN) like Cloudflare or other proxies intercept the original server request and send a new request to the actual site server. By doing this, the server receives the CDN's remote address in the $\_SERVER\[REMOTE\_ADDR\] value which is not what we want. Functionality that relies on IP detection to do stuff doesnt function properly because of this. This extension lets magento know to search for values in $\_SERVER\[HTTP\_CF\_CONNECTING\_IP\] or SERVER\[HTTP\_X\_FORWARDED\_FOR\] and use these values as the remote address if they exist.

Installation Instructions
-------------------------

[](#installation-instructions)

*Install using composer*

```
composer require ccerda0520/alternative-http-header
php bin/magento module:enable CCerda_AlternativeHttpHeader
php bin/magento setup:upgrade

```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2276d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/93367948da47779bb28fa22918295f02c9b07719789e79cdb8525f1e0b1a15fc?d=identicon)[ccerda0520](/maintainers/ccerda0520)

---

Top Contributors

[![ccerda0520](https://avatars.githubusercontent.com/u/53513374?v=4)](https://github.com/ccerda0520 "ccerda0520 (3 commits)")

### Embed Badge

![Health badge](/badges/ccerda0520-alternative-http-header/health.svg)

```
[![Health](https://phpackages.com/badges/ccerda0520-alternative-http-header/health.svg)](https://phpackages.com/packages/ccerda0520-alternative-http-header)
```

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M82](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.9M6.8k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k114](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M90](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
