intval/incapsula-ip-fixer

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


Keywords
proxy, incapsula
License
MirOS

Documentation

Incapsula Ip Fixer

Build Status Latest Stable Version Total Downloads

Unveils real client ip hidden by Incapusla proxy and cdn service. Ip spoofing protection checks the remote addr against allowed incapsulas IP list

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

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