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)3541OSL-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 today

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 43% 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

2223d 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

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M318](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M292](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

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