intval/incapsula-ip-fixer

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

dev-master 2014-04-17 13:14 UTC

This package is not auto-updated.

Last update: 2024-05-25 13:59:43 UTC


README

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