[Release] Incapsula Real IP revCMS
Hello, RaGEZONE.
As many noobs have problems with Incapsula and revCMS, I decided the fix for real IP with Incapsula.
First you open your global.php, and replace everything with this THIS.. Woïla. Every user should now have "ip_reg" real IP, and not Incapsula proxy IP.
I hope this will be useful for noobs.
Enjoy!
Re: [Release] Incapsula Real IP revCMS
Re: [Release] Incapsula Real IP revCMS
Or use:
$_SERVER['REMOTE_ADDR'] = $_SERVER["HTTP_INCAP_CLIENT_IP"] ? $_SERVER["HTTP_INCAP_CLIENT_IP"] : $_SERVER["REMOTE_ADDR"];
Re: [Release] Incapsula Real IP revCMS
Quote:
Originally Posted by
Vexq
Or use:
$_SERVER['REMOTE_ADDR'] = $_SERVER["HTTP_INCAP_CLIENT_IP"] ? $_SERVER["HTTP_INCAP_CLIENT_IP"] : $_SERVER["REMOTE_ADDR"];
You know that HTTP_INCAP_CLIENT_IP can be changed with a simple httpheader changer... And that a cms like revcms doesn't filter it... So you can run mysql exploits.. Ps you can do that by cloudflare too...
- Spot Ify
Re: [Release] Incapsula Real IP revCMS
Quote:
Originally Posted by
Sve9n
Thanks man :junglejane:
No problem.
- - - Updated - - -
Quote:
Originally Posted by
Exonize
By looking at that file you are the only noob here. I don't use Incapsula but you could easily get the real IP with 2 lines of code and without messing up the CMS.
If you just have shit to post on EVERY thread I post, just f*k off.
Re: [Release] Incapsula Real IP revCMS
Using your method you allow IP spoofing if hacker have real IP of server. (some way to get it)
Re: [Release] Incapsula Real IP revCMS
Actually, I'm personally using Incapsula for CDN.
Re: [Release] Incapsula Real IP revCMS
Quote:
Originally Posted by
Spot Ify
You know that HTTP_INCAP_CLIENT_IP can be changed with a simple httpheader changer... And that a cms like revcms doesn't filter it... So you can run mysql exploits.. Ps you can do that by cloudflare too...
- Spot Ify
You can't do it with CF anymore because I reported it to them.
Re: [Release] Incapsula Real IP revCMS
Quote:
Originally Posted by
Jonteh
You can't do it with CF anymore because I reported it to them.
To Who? to all retro's or did you report it to cloudflare...
because its not a cloudflare issue its a code issue becaue if you know the real ip...
Then can you change the host so the server thinks you are entering the website from the real domain (if they have the bindings at the domain by IIS)
And then you have direct connection and by direct connection can you set the HTTPHEADERS because there is no cloudflare who delete the header...
There are easy fixes for this validating the header (I recommed that)
Or allow only the cloudflare ips in IIS with IP and Domain Restrictions (I recommed this too because its also for the AntiDDOS ;p)
- Spot Ify
Re: [Release] Incapsula Real IP revCMS
Quote:
Originally Posted by
Spot Ify
To Who? to all retro's or did you report it to cloudflare...
because its not a cloudflare issue its a code issue becaue if you know the real ip...
Then can you change the host so the server thinks you are entering the website from the real domain (if they have the bindings at the domain by IIS)
And then you have direct connection and by direct connection can you set the HTTPHEADERS because there is no cloudflare who delete the header...
There are easy fixes for this validating the header (I recommed that)
Or allow only the cloudflare ips in IIS with IP and Domain Restrictions (I recommed this too because its also for the AntiDDOS ;p)
- Spot Ify
CloudFlare validates the cf connecting IP header before sending it to the website.
I know this because I used said exploit to hack many websites. I reported it to them and got a year of pro and a t shirt, lolz.
Re: [Release] Incapsula Real IP revCMS
With me after i replace, people still have the Proxy IP ?
Re: [Release] Incapsula Real IP revCMS
They alwayd did lol bug I'm saying that if you Know the real ip of the webserver. Then you can just skip Cloudflare and have a direct connection.. Because cloudflare is just a domainproxy and it has nothing to do with the real webserver. So you can still change the header if you know the real ip and adding it to your hostfile. Lol
But if you setup iis to allow only connections from cloudflare is it impossible to do that.. But there are just some retro's who have that...
And I just tested it at a big hotel with cloudflare and it was still possible...
-spot Ify
Re: [Release] Incapsula Real IP revCMS
Quote:
Originally Posted by
UartigZone
With me after i replace, people still have the Proxy IP ?
Did you replace your whole global.php?
Re: [Release] Incapsula Real IP revCMS
Quote:
Originally Posted by
Zedd
Did you replace your whole global.php?
Yes and still the same ....
Re: [Release] Incapsula Real IP revCMS
Quote:
Originally Posted by
UartigZone
Yes and still the same ....
It's working here. Be sure if you're using a http proxy over Incapsula it won't work.