mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 02:28:05 -07:00
Disable direct access through frontend nginx in /reset/mail/
This commit is contained in:
parent
9e0d1cb3bf
commit
4fa549c570
1 changed files with 1 additions and 0 deletions
|
@ -22,6 +22,7 @@ foreach ($arr as $arr_key => $arr_val) {
|
|||
if ($ip == $_SERVER['SERVER_ADDR']) $ok=1;
|
||||
if ($ip == '127.0.0.1') $ok=1;
|
||||
if ($ok==0) exit;
|
||||
if (isset($_SERVER['HTTP_X_REAL_IP']) || isset($_SERVER['HTTP_X_FORWARDED_FOR'])) exit;
|
||||
|
||||
//
|
||||
// sourceforge.net/projects/postfixadmin/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue