Update common.php

This commit is contained in:
Roman Kelesidis 2025-08-19 11:18:33 +03:00
commit d8e22c9219
No known key found for this signature in database
GPG key ID: D8157C4D4C4C6DB4

View file

@ -51,7 +51,11 @@ $allowedCDNs = [
'HTTP_CF_CONNECTING_IP',
'HTTP_FASTLY_CLIENT_IP',
'HTTP_X_REAL_IP',
'HTTP_X_FORWARDED_FOR'
'HTTP_X_FORWARDED_FOR',
// Add your custom headers here if needed
// Example: 'HTTP_TRUE_CLIENT_IP', // Akamai
// Example: 'HTTP_X_CLIENT_IP', // Custom proxy
// Example: 'HTTP_INCAP_CLIENT_IP', // Incapsula
];
if (empty($trustedProxies) || in_array($_SERVER['REMOTE_ADDR'], $trustedProxies)) {