Hello, I have a hotel and im using gold tree emulator, cloudflare and tcp proxy
My members get fake ip when they register. How do I fix that? I wanna be able to ipban people and so
Hello, I have a hotel and im using gold tree emulator, cloudflare and tcp proxy
My members get fake ip when they register. How do I fix that? I wanna be able to ipban people and so
Fake IP? Do you mean a CloudFlare IP?
Yes I mean CloudFlare IP
Are you using Rev or Uber?
Im using PhoenixPHP (full patched)
Try using $_SERVER['HTTP_X_REAL_IP']
Where should I put that? in global.php?
Yes or conf
You need to change the IP header your CMS is receiving, for example, if you're using CloudFlare; you can use the following code (mind you it's from the top of my head so may need to be adjusted):
PHP Code:if (isset($_SERVER['HTTP_CF_CONNECTING_IP'])) {
$_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP'];
}