PHPackages                             intval/incapsula-ip-fixer - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. intval/incapsula-ip-fixer

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

intval/incapsula-ip-fixer
=========================

Extracts real client ip hidden by incapsula cdn, while prevents ip spoofing

191PHP

Since Apr 17Pushed 12y agoCompare

[ Source](https://github.com/intval/IncapsulaIpFixer)[ Packagist](https://packagist.org/packages/intval/incapsula-ip-fixer)[ RSS](/packages/intval-incapsula-ip-fixer/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Incapsula Ip Fixer
==================

[](#incapsula-ip-fixer)

[![Build Status](https://camo.githubusercontent.com/d08dda29cb186a5a1fcedbbedcc8b760c667d1519069878996961f154bd47e49/68747470733a2f2f7472617669732d63692e6f72672f696e7476616c2f496e63617073756c61497046697865722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/intval/IncapsulaIpFixer)[![Latest Stable Version](https://camo.githubusercontent.com/ea94cf905502319722ab96fe8d0f08e46519243df075ba38c3577cad9a88c693/68747470733a2f2f706f7365722e707567782e6f72672f696e7476616c2f696e63617073756c612d69702d66697865722f762f737461626c652e706e67)](https://packagist.org/packages/intval/incapsula-ip-fixer)[![Total Downloads](https://camo.githubusercontent.com/37c362da65e0763dd84a9c6281db5169d6de247717205c984e635ab2e75a0820/68747470733a2f2f706f7365722e707567782e6f72672f696e7476616c2f696e63617073756c612d69702d66697865722f646f776e6c6f6164732e706e67)](https://packagist.org/packages/intval/incapsula-ip-fixer)

Unveils real client ip hidden by [Incapusla](http://incapsula.com) proxy and cdn service. Ip spoofing protection checks the remote addr against [allowed incapsulas IP list](http://support.incapsula.com/hc/en-us/articles/200627570-Restricting-direct-access-to-your-website-Incapsula-s-IP-addresses-)

This software is distributed under the BSD Licence. You can do whatever you want.

Usage
-----

[](#usage)

Execute the method `FixRemoteAddrInServerArray`
it will update the passed \_SERVER array with correct remote addr only if the request is coming through incapsula
`(new \Intval\IncapsulaIpFixer($_SERVER))->FixRemoteAddrInServerArray();`

`GetClientIp()`
returns real clients ip behind incapsula proxy

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6def1aafb3571cb47381ca619cc003f56329cae05e4ef2d5960e4da353cc0731?d=identicon)[intval](/maintainers/intval)

---

Top Contributors

[![intval](https://avatars.githubusercontent.com/u/960894?v=4)](https://github.com/intval "intval (6 commits)")

### Embed Badge

![Health badge](/badges/intval-incapsula-ip-fixer/health.svg)

```
[![Health](https://phpackages.com/badges/intval-incapsula-ip-fixer/health.svg)](https://phpackages.com/packages/intval-incapsula-ip-fixer)
```

###  Alternatives

[wehaa/liveupdate

A Laravel Nova field.

29184.8k](/packages/wehaa-liveupdate)

PHPackages © 2026

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