From 8fe68ea70d29e87dd6d925bfd8cf14aeb5a4b131 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 18 May 2023 10:18:36 +0200 Subject: access-restriction.php: use tor circuit number as identification --- access-restriction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/access-restriction.php b/access-restriction.php index 92049bc..35ff597 100644 --- a/access-restriction.php +++ b/access-restriction.php @@ -8,7 +8,7 @@ $pubKey = trim(fgets($keyFile)); fclose($keyFile); function client_identifier() { - return $_SERVER['SERVER_ADDR'] . " " . $_SERVER['REMOTE_ADDR'] . " " . $_SERVER['REMOTE_PORT']; + return $_SERVER['SERVER_ADDR'] . " " . $_SERVER['REMOTE_ADDR'] . " " . $_SERVER["FORWARDED_FOR"]; } function zugriff_erlaubt() { -- cgit v1.2.3-70-g09d2