Skip to content

Commit 4fa549c

Browse files
authored
Disable direct access through frontend nginx in /reset/mail/
1 parent 9e0d1cb commit 4fa549c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

web/reset/mail/index.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
if ($ip == $_SERVER['SERVER_ADDR']) $ok=1;
2323
if ($ip == '127.0.0.1') $ok=1;
2424
if ($ok==0) exit;
25+
if (isset($_SERVER['HTTP_X_REAL_IP']) || isset($_SERVER['HTTP_X_FORWARDED_FOR'])) exit;
2526

2627
//
2728
// sourceforge.net/projects/postfixadmin/

0 commit comments

Comments
 (0)