intval / incapsula-ip-fixer
Extracts real client ip hidden by incapsula cdn, while prevents ip spoofing
dev-master
2014-04-17 13:14 UTC
Requires
- php: >=5.3.0
Requires (Dev)
- phpunit/phpunit: ~3.7.0
This package is not auto-updated.
Last update: 2024-10-26 15:57:00 UTC
README
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