mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 06:13:58 -07:00
Update common.php
This commit is contained in:
parent
7f6468ba6c
commit
d8e22c9219
1 changed files with 5 additions and 1 deletions
|
@ -51,7 +51,11 @@ $allowedCDNs = [
|
||||||
'HTTP_CF_CONNECTING_IP',
|
'HTTP_CF_CONNECTING_IP',
|
||||||
'HTTP_FASTLY_CLIENT_IP',
|
'HTTP_FASTLY_CLIENT_IP',
|
||||||
'HTTP_X_REAL_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)) {
|
if (empty($trustedProxies) || in_array($_SERVER['REMOTE_ADDR'], $trustedProxies)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue