The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to get the real IP when using Akamai?
we use akamai for caching our site. When a user signs up/posts the akamai IP is logged instead of the real user IP, making it hard to ban spammers.
Akamai does pass the IP of the client in the header under the name "True-Client-IP". Is there a way to capture this and use this for the IP for new users/posts without modifying core files? |
#2
|
|||
|
|||
Quote:
HTML Code:
Support Issues For urgent issues please call (877) 4-AKATEC (US and Canada only) or (617) 444-4699. For non-urgent issues please e-mail ccare@akamai.com |
#3
|
|||
|
|||
Thanks for the comment.
It's not something Akamai can help with. Akamai passes the client's IP through a different header (True-client-ip) versus the normal client IP, since akamai acts as a barrier between our site and the user. What I'm looking for is a way in vbulletin to use the IP passed in the header "True-Client-IP". So, normally in PHP you use: $_SERVER['REMOTE_ADDR']; I have to use $_SERVER['True-Client-IP']. Is there a way to do this easily in Vbulletin instead of modifying core files. |
#4
|
|||
|
|||
There should also be an option to forward the real IP in the normal environment variable.
|
#5
|
|||
|
|||
Hi Marco,
I can't seem to find this option in the control panel. Is it in a config file instead? Thanks! |
#6
|
|||
|
|||
I don't know, i don't have any knowledge of akamai, but that is a common setting in those devices.
|
#7
|
||||
|
||||
open /includes/class_core.php
find PHP Code:
PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|